Java Reference
In-Depth Information
Reads a
float
.
•
void readFully(byte[] b)
Reads
b.length
bytes from this file into the byte array.
•
void readFully(byte[] b, int off, int len)
Reads exactly
len
bytes from this file into the byte array.
•
int readInt()
Reads an integer from this file (four bytes, two complement).
•
String readLine()
Reads the next line of text from the file.
•
long readLong()
Reads a signed
long
.
•
short readShort()
Reads a signed
short
.
•
int readUnsignedByte()
Reads an unsigned
byte
.
•
int readUnsignedShort()
Reads an unsigned
short
.
•
String readUTF()
Reads a
String
.
•
void seek(long pos)
Sets the file-pointer offset.
•
void setLength(long newLength)
Sets the file length.
•
int skipBytes(int n)
Attempts to skip over
n
bytes of input, discarding the skipped bytes.
•
void write(byte[] b)
Writes
b.length
bytes from the specified byte array.
•
void write(byte[] b, int off, int len)
Writes
len
bytes from the specified byte array, starting at offset
off
to this file.
•
void write(int b)
Writes the specified byte.
•
void writeBoolean(boolean v)