Java Reference
In-Depth Information
public final int readInt() throws IOException
Reads an int value from the fi le and returns that value.
If an attempt is made to read beyond the end of the fi le, an EOFException is thrown.
public final long readLong() throws IOException
Reads a long value from the fi le and returns that value.
If an attempt is made to read beyond the end of the fi le, an EOFException is thrown.
public final short readShort() throws IOException
Reads a short value from the fi le and returns that value.
If an attempt is made to read beyond the end of the fi le, an EOFException is thrown.
public final String readUTF() throws IOException
Reads a String value from the fi le and returns that value.
If an attempt is made to read beyond the end of the fi le, an EOFException is thrown.
public void seek( long location) throws IOException
Moves the fi le pointer to the specifi ed location .
public void write( byte [] a) throws IOException
Writes a.length bytes from the specifi ed byte array to the fi le.
public void write( int b) throws IOException
Writes the specifi ed byte to the fi le.
public final void writeBoolean( boolean b ) throws IOException
Writes the boolean b to the fi le.
public final void writeByte( byte b ) throws IOException
Writes the byte b to the fi le.
public final void writeChar( char c ) throws IOException
Writes the char c to the fi le.
public final void writeDouble( double d ) throws IOException
Writes the double d to the fi le.
public final void writeFloat( float f ) throws IOException
Writes the float f to the fi le.
public final void writeInt( int n ) throws IOException
Writes the int n to the fi le.
Search WWH ::




Custom Search