public abstract class AbstractVfsRandomAccess extends java.lang.Object implements VfsRandomAccess
Copyright 2004-2012 Partner Software, Inc.
| Constructor and Description |
|---|
AbstractVfsRandomAccess(VfsFile file) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the file and releases any associated resources.
|
VfsFile |
getFile()
The VfsFile this VfsRandomAccess is accessing.
|
boolean |
isWritable()
True if this is a read-write file.
|
boolean |
readBoolean() |
byte |
readByte() |
char |
readChar() |
double |
readDouble() |
float |
readFloat() |
void |
readFully(byte[] buffer) |
void |
readFully(byte[] buffer,
int offset,
int length) |
int |
readInt() |
java.lang.String |
readLine() |
long |
readLong() |
short |
readShort() |
int |
readUnsignedByte() |
int |
readUnsignedShort() |
java.lang.String |
readUTF() |
void |
setWritable(boolean tizit)
Attempt to set this to writable.
|
int |
skipBytes(int count) |
void |
write(byte[] buffer) |
void |
writeBoolean(boolean value) |
void |
writeByte(int value) |
void |
writeBytes(java.lang.String byteString) |
void |
writeChar(int value) |
void |
writeChars(java.lang.String byteString) |
void |
writeDouble(double value) |
void |
writeFloat(float value) |
void |
writeInt(int value) |
void |
writeLong(long value) |
void |
writeShort(int value) |
void |
writeUTF(java.lang.String value) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLength, getPosition, read, setLength, setPositionpublic AbstractVfsRandomAccess(VfsFile file)
public VfsFile getFile()
VfsRandomAccessgetFile in interface VfsRandomAccesspublic boolean isWritable()
VfsRandomAccessisWritable in interface VfsRandomAccesspublic void setWritable(boolean tizit)
VfsRandomAccesssetWritable in interface VfsRandomAccesspublic void close()
throws java.io.IOException
VfsRandomAccessclose in interface VfsRandomAccessjava.io.IOException - if closing failspublic void readFully(byte[] buffer)
throws java.io.IOException
readFully in interface java.io.DataInputjava.io.IOExceptionpublic void readFully(byte[] buffer,
int offset,
int length)
throws java.io.IOException
readFully in interface java.io.DataInputjava.io.IOExceptionpublic void write(byte[] buffer)
throws java.io.IOException
write in interface java.io.DataOutputjava.io.IOExceptionpublic long readLong()
throws java.io.IOException
readLong in interface java.io.DataInputjava.io.IOExceptionpublic byte readByte()
throws java.io.IOException
readByte in interface java.io.DataInputjava.io.IOExceptionpublic boolean readBoolean()
throws java.io.IOException
readBoolean in interface java.io.DataInputjava.io.IOExceptionpublic char readChar()
throws java.io.IOException
readChar in interface java.io.DataInputjava.io.IOExceptionpublic float readFloat()
throws java.io.IOException
readFloat in interface java.io.DataInputjava.io.IOExceptionpublic double readDouble()
throws java.io.IOException
readDouble in interface java.io.DataInputjava.io.IOExceptionpublic int readInt()
throws java.io.IOException
readInt in interface java.io.DataInputjava.io.IOExceptionpublic java.lang.String readLine()
throws java.io.IOException
readLine in interface java.io.DataInputjava.io.IOExceptionpublic int readUnsignedByte()
throws java.io.IOException
readUnsignedByte in interface java.io.DataInputjava.io.IOExceptionpublic int readUnsignedShort()
throws java.io.IOException
readUnsignedShort in interface java.io.DataInputjava.io.IOExceptionpublic short readShort()
throws java.io.IOException
readShort in interface java.io.DataInputjava.io.IOExceptionpublic java.lang.String readUTF()
throws java.io.IOException
readUTF in interface java.io.DataInputjava.io.IOExceptionpublic int skipBytes(int count)
throws java.io.IOException
skipBytes in interface java.io.DataInputjava.io.IOExceptionpublic void writeBoolean(boolean value)
throws java.io.IOException
writeBoolean in interface java.io.DataOutputjava.io.IOExceptionpublic void writeShort(int value)
throws java.io.IOException
writeShort in interface java.io.DataOutputjava.io.IOExceptionpublic void writeChar(int value)
throws java.io.IOException
writeChar in interface java.io.DataOutputjava.io.IOExceptionpublic void writeByte(int value)
throws java.io.IOException
writeByte in interface java.io.DataOutputjava.io.IOExceptionpublic void writeBytes(java.lang.String byteString)
throws java.io.IOException
writeBytes in interface java.io.DataOutputjava.io.IOExceptionpublic void writeChars(java.lang.String byteString)
throws java.io.IOException
writeChars in interface java.io.DataOutputjava.io.IOExceptionpublic void writeDouble(double value)
throws java.io.IOException
writeDouble in interface java.io.DataOutputjava.io.IOExceptionpublic void writeFloat(float value)
throws java.io.IOException
writeFloat in interface java.io.DataOutputjava.io.IOExceptionpublic void writeInt(int value)
throws java.io.IOException
writeInt in interface java.io.DataOutputjava.io.IOExceptionpublic void writeLong(long value)
throws java.io.IOException
writeLong in interface java.io.DataOutputjava.io.IOExceptionpublic void writeUTF(java.lang.String value)
throws java.io.IOException
writeUTF in interface java.io.DataOutputjava.io.IOException