Package java.io
Class RandomAccessFile
- java.lang.Object
-
- java.io.RandomAccessFile
-
- All Implemented Interfaces:
DataInput,DataOutput
public class RandomAccessFile extends Object implements DataInput, DataOutput
-
-
Constructor Summary
Constructors Constructor Description RandomAccessFile(File var0, String var1)RandomAccessFile(String var0, String var1)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()FileDescriptorgetFD()longgetFilePointer()longlength()intread()intread(byte[] var0)intread(byte[] var0, int var1, int var2)booleanreadBoolean()bytereadByte()charreadChar()doublereadDouble()floatreadFloat()voidreadFully(byte[] var0)voidreadFully(byte[] var0, int var1, int var2)intreadInt()StringreadLine()longreadLong()shortreadShort()intreadUnsignedByte()intreadUnsignedShort()StringreadUTF()voidseek(long var0)voidsetLength(long var0)intskipBytes(int var0)voidwrite(byte[] var0)voidwrite(byte[] var0, int var1, int var2)voidwrite(int var0)voidwriteBoolean(boolean var0)voidwriteByte(int var0)voidwriteBytes(String var0)voidwriteChar(int var0)voidwriteChars(String var0)voidwriteDouble(double var0)voidwriteFloat(float var0)voidwriteInt(int var0)voidwriteLong(long var0)voidwriteShort(int var0)voidwriteUTF(String var0)
-
-
-
Constructor Detail
-
RandomAccessFile
public RandomAccessFile(File var0, String var1) throws FileNotFoundException
- Throws:
FileNotFoundException
-
RandomAccessFile
public RandomAccessFile(String var0, String var1) throws FileNotFoundException
- Throws:
FileNotFoundException
-
-
Method Detail
-
close
public void close() throws IOException- Throws:
IOException
-
getFD
public final FileDescriptor getFD() throws IOException
- Throws:
IOException
-
getFilePointer
public long getFilePointer() throws IOException- Throws:
IOException
-
length
public long length() throws IOException- Throws:
IOException
-
read
public int read() throws IOException- Throws:
IOException
-
read
public int read(byte[] var0) throws IOException- Throws:
IOException
-
read
public int read(byte[] var0, int var1, int var2) throws IOException- Throws:
IOException
-
readBoolean
public final boolean readBoolean() throws IOException- Specified by:
readBooleanin interfaceDataInput- Throws:
IOException
-
readByte
public final byte readByte() throws IOException- Specified by:
readBytein interfaceDataInput- Throws:
IOException
-
readChar
public final char readChar() throws IOException- Specified by:
readCharin interfaceDataInput- Throws:
IOException
-
readDouble
public final double readDouble() throws IOException- Specified by:
readDoublein interfaceDataInput- Throws:
IOException
-
readFloat
public final float readFloat() throws IOException- Specified by:
readFloatin interfaceDataInput- Throws:
IOException
-
readFully
public final void readFully(byte[] var0) throws IOException- Specified by:
readFullyin interfaceDataInput- Throws:
IOException
-
readFully
public final void readFully(byte[] var0, int var1, int var2) throws IOException- Specified by:
readFullyin interfaceDataInput- Throws:
IOException
-
readInt
public final int readInt() throws IOException- Specified by:
readIntin interfaceDataInput- Throws:
IOException
-
readLine
public final String readLine() throws IOException
- Specified by:
readLinein interfaceDataInput- Throws:
IOException
-
readLong
public final long readLong() throws IOException- Specified by:
readLongin interfaceDataInput- Throws:
IOException
-
readShort
public final short readShort() throws IOException- Specified by:
readShortin interfaceDataInput- Throws:
IOException
-
readUnsignedByte
public final int readUnsignedByte() throws IOException- Specified by:
readUnsignedBytein interfaceDataInput- Throws:
IOException
-
readUnsignedShort
public final int readUnsignedShort() throws IOException- Specified by:
readUnsignedShortin interfaceDataInput- Throws:
IOException
-
readUTF
public final String readUTF() throws IOException
- Specified by:
readUTFin interfaceDataInput- Throws:
IOException
-
seek
public void seek(long var0) throws IOException- Throws:
IOException
-
setLength
public void setLength(long var0) throws IOException- Throws:
IOException
-
skipBytes
public int skipBytes(int var0) throws IOException- Specified by:
skipBytesin interfaceDataInput- Throws:
IOException
-
write
public void write(byte[] var0) throws IOException- Specified by:
writein interfaceDataOutput- Throws:
IOException
-
write
public void write(byte[] var0, int var1, int var2) throws IOException- Specified by:
writein interfaceDataOutput- Throws:
IOException
-
write
public void write(int var0) throws IOException- Specified by:
writein interfaceDataOutput- Throws:
IOException
-
writeBoolean
public final void writeBoolean(boolean var0) throws IOException- Specified by:
writeBooleanin interfaceDataOutput- Throws:
IOException
-
writeByte
public final void writeByte(int var0) throws IOException- Specified by:
writeBytein interfaceDataOutput- Throws:
IOException
-
writeBytes
public final void writeBytes(String var0) throws IOException
- Specified by:
writeBytesin interfaceDataOutput- Throws:
IOException
-
writeChar
public final void writeChar(int var0) throws IOException- Specified by:
writeCharin interfaceDataOutput- Throws:
IOException
-
writeChars
public final void writeChars(String var0) throws IOException
- Specified by:
writeCharsin interfaceDataOutput- Throws:
IOException
-
writeDouble
public final void writeDouble(double var0) throws IOException- Specified by:
writeDoublein interfaceDataOutput- Throws:
IOException
-
writeFloat
public final void writeFloat(float var0) throws IOException- Specified by:
writeFloatin interfaceDataOutput- Throws:
IOException
-
writeInt
public final void writeInt(int var0) throws IOException- Specified by:
writeIntin interfaceDataOutput- Throws:
IOException
-
writeLong
public final void writeLong(long var0) throws IOException- Specified by:
writeLongin interfaceDataOutput- Throws:
IOException
-
writeShort
public final void writeShort(int var0) throws IOException- Specified by:
writeShortin interfaceDataOutput- Throws:
IOException
-
writeUTF
public final void writeUTF(String var0) throws IOException
- Specified by:
writeUTFin interfaceDataOutput- Throws:
IOException
-
-