java.io
Class RandomAccessFile
java.lang.Object
|
+--java.io.RandomAccessFile
- All Implemented Interfaces:
- DataInput, DataOutput
- public synchronized class RandomAccessFile
- extends Object
- implements DataOutput, DataInput
RandomAccessFile
public RandomAccessFile(String,
String)
throws FileNotFoundException
RandomAccessFile
public RandomAccessFile(File,
String)
throws FileNotFoundException
getFD
public final FileDescriptor getFD()
throws IOException
IOException
getChannel
public final java.nio.channels.FileChannel getChannel()
read
public int read()
throws IOException
IOException
read
public int read(byte[],
int,
int)
throws IOException
IOException
read
public int read(byte[])
throws IOException
IOException
readFully
public final void readFully(byte[])
throws IOException
- Specified by:
readFully
in interface DataInput
IOException
readFully
public final void readFully(byte[],
int,
int)
throws IOException
- Specified by:
readFully
in interface DataInput
IOException
skipBytes
public int skipBytes(int)
throws IOException
- Specified by:
skipBytes
in interface DataInput
IOException
write
public void write(int)
throws IOException
- Specified by:
write
in interface DataOutput
IOException
write
public void write(byte[])
throws IOException
- Specified by:
write
in interface DataOutput
IOException
write
public void write(byte[],
int,
int)
throws IOException
- Specified by:
write
in interface DataOutput
IOException
getFilePointer
public long getFilePointer()
throws IOException
IOException
seek
public void seek(long)
throws IOException
IOException
length
public long length()
throws IOException
IOException
setLength
public void setLength(long)
throws IOException
IOException
close
public void close()
throws IOException
IOException
readBoolean
public final boolean readBoolean()
throws IOException
- Specified by:
readBoolean
in interface DataInput
IOException
readByte
public final byte readByte()
throws IOException
- Specified by:
readByte
in interface DataInput
IOException
readUnsignedByte
public final int readUnsignedByte()
throws IOException
- Specified by:
readUnsignedByte
in interface DataInput
IOException
readShort
public final short readShort()
throws IOException
- Specified by:
readShort
in interface DataInput
IOException
readUnsignedShort
public final int readUnsignedShort()
throws IOException
- Specified by:
readUnsignedShort
in interface DataInput
IOException
readChar
public final char readChar()
throws IOException
- Specified by:
readChar
in interface DataInput
IOException
readInt
public final int readInt()
throws IOException
- Specified by:
readInt
in interface DataInput
IOException
readLong
public final long readLong()
throws IOException
- Specified by:
readLong
in interface DataInput
IOException
readFloat
public final float readFloat()
throws IOException
- Specified by:
readFloat
in interface DataInput
IOException
readDouble
public final double readDouble()
throws IOException
- Specified by:
readDouble
in interface DataInput
IOException
readLine
public final String readLine()
throws IOException
- Specified by:
readLine
in interface DataInput
IOException
readUTF
public final String readUTF()
throws IOException
- Specified by:
readUTF
in interface DataInput
IOException
writeBoolean
public final void writeBoolean(boolean)
throws IOException
- Specified by:
writeBoolean
in interface DataOutput
IOException
writeByte
public final void writeByte(int)
throws IOException
- Specified by:
writeByte
in interface DataOutput
IOException
writeShort
public final void writeShort(int)
throws IOException
- Specified by:
writeShort
in interface DataOutput
IOException
writeChar
public final void writeChar(int)
throws IOException
- Specified by:
writeChar
in interface DataOutput
IOException
writeInt
public final void writeInt(int)
throws IOException
- Specified by:
writeInt
in interface DataOutput
IOException
writeLong
public final void writeLong(long)
throws IOException
- Specified by:
writeLong
in interface DataOutput
IOException
writeFloat
public final void writeFloat(float)
throws IOException
- Specified by:
writeFloat
in interface DataOutput
IOException
writeDouble
public final void writeDouble(double)
throws IOException
- Specified by:
writeDouble
in interface DataOutput
IOException
writeBytes
public final void writeBytes(String)
throws IOException
- Specified by:
writeBytes
in interface DataOutput
IOException
writeChars
public final void writeChars(String)
throws IOException
- Specified by:
writeChars
in interface DataOutput
IOException
writeUTF
public final void writeUTF(String)
throws IOException
- Specified by:
writeUTF
in interface DataOutput
IOException