|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.metanotion.io.RAIFile
public class RAIFile
| Constructor Summary | |
|---|---|
RAIFile(File file,
boolean read,
boolean write)
|
|
RAIFile(RandomAccessFile file)
|
|
| Method Summary | |
|---|---|
boolean |
canWrite()
I2P is the file writable? Only valid if the File constructor was used, not the RAF constructor |
void |
close()
|
long |
getFilePointer()
|
long |
length()
|
int |
read()
|
int |
read(byte[] b)
|
int |
read(byte[] b,
int off,
int len)
|
boolean |
readBoolean()
|
byte |
readByte()
|
char |
readChar()
|
double |
readDouble()
|
float |
readFloat()
|
void |
readFully(byte[] b)
|
void |
readFully(byte[] b,
int off,
int len)
|
int |
readInt()
|
String |
readLine()
|
long |
readLong()
|
short |
readShort()
|
int |
readUnsignedByte()
|
int |
readUnsignedInt()
I2P |
int |
readUnsignedShort()
|
String |
readUTF()
Read a UTF encoded string I would delegate here. |
void |
seek(long pos)
|
void |
setLength(long newLength)
|
int |
skipBytes(int n)
|
String |
toString()
|
void |
write(byte[] b)
|
void |
write(byte[] b,
int off,
int len)
|
void |
write(int b)
|
void |
writeBoolean(boolean v)
|
void |
writeByte(int v)
|
void |
writeBytes(String s)
|
void |
writeChar(int v)
|
void |
writeChars(String s)
|
void |
writeDouble(double v)
|
void |
writeFloat(float v)
|
void |
writeInt(int v)
|
void |
writeLong(long v)
|
void |
writeShort(int v)
|
void |
writeUTF(String str)
Write a UTF encoded string I would delegate here. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RAIFile(RandomAccessFile file)
throws FileNotFoundException
FileNotFoundException
public RAIFile(File file,
boolean read,
boolean write)
throws FileNotFoundException
read - must be true
FileNotFoundException| Method Detail |
|---|
public boolean canWrite()
canWrite in interface RandomAccessInterfacepublic String toString()
toString in class Object
public long getFilePointer()
throws IOException
getFilePointer in interface RandomAccessInterfaceIOException
public long length()
throws IOException
length in interface RandomAccessInterfaceIOException
public int read()
throws IOException
read in interface RandomAccessInterfaceIOException
public int read(byte[] b)
throws IOException
read in interface RandomAccessInterfaceIOException
public int read(byte[] b,
int off,
int len)
throws IOException
read in interface RandomAccessInterfaceIOException
public void seek(long pos)
throws IOException
seek in interface RandomAccessInterfaceIOException
public void setLength(long newLength)
throws IOException
setLength in interface RandomAccessInterfaceIOException
public void close()
throws IOException
close in interface RandomAccessInterfaceIOException
public boolean readBoolean()
throws IOException
readBoolean in interface DataInputreadBoolean in interface RandomAccessInterfaceIOException
public byte readByte()
throws IOException
readByte in interface DataInputreadByte in interface RandomAccessInterfaceIOException
public char readChar()
throws IOException
readChar in interface DataInputreadChar in interface RandomAccessInterfaceIOException
public double readDouble()
throws IOException
readDouble in interface DataInputreadDouble in interface RandomAccessInterfaceIOException
public float readFloat()
throws IOException
readFloat in interface DataInputreadFloat in interface RandomAccessInterfaceIOException
public void readFully(byte[] b)
throws IOException
readFully in interface DataInputreadFully in interface RandomAccessInterfaceIOException
public void readFully(byte[] b,
int off,
int len)
throws IOException
readFully in interface DataInputreadFully in interface RandomAccessInterfaceIOException
public int readInt()
throws IOException
readInt in interface DataInputreadInt in interface RandomAccessInterfaceIOException
public String readLine()
throws IOException
readLine in interface DataInputreadLine in interface RandomAccessInterfaceIOException
public long readLong()
throws IOException
readLong in interface DataInputreadLong in interface RandomAccessInterfaceIOException
public short readShort()
throws IOException
readShort in interface DataInputreadShort in interface RandomAccessInterfaceIOException
public int readUnsignedByte()
throws IOException
readUnsignedByte in interface DataInputreadUnsignedByte in interface RandomAccessInterfaceIOException
public int readUnsignedShort()
throws IOException
readUnsignedShort in interface DataInputreadUnsignedShort in interface RandomAccessInterfaceIOException
public int readUnsignedInt()
throws IOException
readUnsignedInt in interface RandomAccessInterfaceIOException - if the read value is negative
public String readUTF()
throws IOException
readUTF in interface DataInputreadUTF in interface RandomAccessInterfaceIOException
public int skipBytes(int n)
throws IOException
skipBytes in interface DataInputskipBytes in interface RandomAccessInterfaceIOException
public void write(int b)
throws IOException
write in interface DataOutputwrite in interface RandomAccessInterfaceIOException
public void write(byte[] b)
throws IOException
write in interface DataOutputwrite in interface RandomAccessInterfaceIOException
public void write(byte[] b,
int off,
int len)
throws IOException
write in interface DataOutputwrite in interface RandomAccessInterfaceIOException
public void writeBoolean(boolean v)
throws IOException
writeBoolean in interface DataOutputwriteBoolean in interface RandomAccessInterfaceIOException
public void writeByte(int v)
throws IOException
writeByte in interface DataOutputwriteByte in interface RandomAccessInterfaceIOException
public void writeShort(int v)
throws IOException
writeShort in interface DataOutputwriteShort in interface RandomAccessInterfaceIOException
public void writeChar(int v)
throws IOException
writeChar in interface DataOutputwriteChar in interface RandomAccessInterfaceIOException
public void writeInt(int v)
throws IOException
writeInt in interface DataOutputwriteInt in interface RandomAccessInterfaceIOException
public void writeLong(long v)
throws IOException
writeLong in interface DataOutputwriteLong in interface RandomAccessInterfaceIOException
public void writeFloat(float v)
throws IOException
writeFloat in interface DataOutputwriteFloat in interface RandomAccessInterfaceIOException
public void writeDouble(double v)
throws IOException
writeDouble in interface DataOutputwriteDouble in interface RandomAccessInterfaceIOException
public void writeBytes(String s)
throws IOException
writeBytes in interface DataOutputwriteBytes in interface RandomAccessInterfaceIOException
public void writeChars(String s)
throws IOException
writeChars in interface DataOutputwriteChars in interface RandomAccessInterfaceIOException
public void writeUTF(String str)
throws IOException
writeUTF in interface DataOutputwriteUTF in interface RandomAccessInterfaceIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||