Package java.io
Class RandomAccessFile
int read()
Throws:
int read(byte[] buf)
Throws:
int read(byte[] buf, int offset, int len)
Throws:
_INSERT_METHOD_SIGNATURE_HERE_
Description:
read() method:
Reads a byte of data from this file. The file pointer will be adjusted by the number of bytes read. The byte is returned as an integer in the range 0 to 255 (0x00-0x0ff). The method blocks if no input is yet available. This method behaves the same way as the InputStream.read() method of InputStream.
read(byte[] buf) method:
Reads up to b.length bytes of data from this file into an array of bytes. The file pointer will be adjusted by the number of bytes read. Returns the total number of bytes read into the buffer. Note that this number might be smaller than buf.length if the end of the file was reached. If there is no more data to read because EOF was reached, -1 is returned.
The method blocks until at least one byte of input is available. This method behaves the same way as the InputStream.read(byte[]) method of InputStream.
read(byte[] buf, int offset, int len) method:
Reads up to len bytes of data from this file into an array of bytes. The file pointer will be adjusted by the number of bytes read. Returns the total number of bytes read into the buffer. Note that this number might be smaller than len if the end of the file was reached. If there is no more data to read because EOF was reached, -1 is returned.
The method blocks until at least one byte of input is available. This method behaves in the exactly the same way as the InputStream.read(byte[], int, int) method of InputStream.