All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----org.jos.java.io.RandomAccessFile
based on kore-0.0.7 by Glynn Clements
Sun really didn't include a "truncate" method in RandomAccessFile!?!? How do you shorten a 500MB file, then? By copying? Hmgrm.
n
bytes in the file, if possible.
public RandomAccessFile(String path, String mode) throws IOException
public RandomAccessFile(File file, String mode) throws IOException
public final FileDescriptor getFD() throws IOException
public void close() throws IOException
public long getFilePointer() throws IOException
public void seek(long pos) throws IOException
public long length() throws IOException
public int skipBytes(int n) throws IOException
n
bytes in the file, if possible.
public int read() throws IOException
public int read(byte[] b) throws IOException
public int read(byte[] b, int off, int len) throws IOException
public void write(int c) throws IOException
public void write(byte[] b) throws IOException
public void write(byte[] b, int off, int len) throws IOException
public final boolean readBoolean() throws IOException
public final byte readByte() throws IOException
public final int readUnsignedByte() throws IOException
public final char readChar() throws IOException
public final short readShort() throws IOException
public final int readUnsignedShort() throws IOException
public final int readInt() throws IOException
public final long readLong() throws IOException
public final float readFloat() throws IOException
public final double readDouble() throws IOException
public final String readLine() throws IOException
public final String readUTF() throws IOException
public final void readFully(byte[] b) throws IOException
public final void readFully(byte[] b, int off, int len) throws IOException
public final void writeBoolean(boolean v) throws IOException
public final void writeByte(int v) throws IOException
public final void writeChar(int v) throws IOException
public final void writeShort(int v) throws IOException
public final void writeInt(int v) throws IOException
public final void writeLong(long v) throws IOException
public final void writeFloat(float v) throws IOException
public final void writeDouble(double v) throws IOException
public final void writeBytes(String s) throws IOException
public final void writeChars(String s) throws IOException
public final void writeUTF(String s) throws IOException
All Packages Class Hierarchy This Package Previous Next Index