RandomAccessFile.readFully
Class Overview | Class Members | 
  This Package | 
All Packages
 public final void readFully( byte b[] ) throws IOException
Parameters
-  b 
 -  the buffer into which the data is read.
    
 
Description
 Reads b.length bytes from this file into the byte 
 array. This method reads repeatedly from the file until all the 
 bytes are read. This method blocks until all the bytes are read, 
 the end of the stream is detected, or an exception is thrown.
  
Exceptions
 EOFException
     if this file reaches the end before reading
               all the bytes.
    
Exceptions
 IOException
     if an I/O error occurs.
  
 public final void readFully( byte b[],
                             int off,
                             int len ) throws IOException
Parameters
-  b 
 -  the buffer into which the data is read.
    
 -  off 
 -  the start offset of the data.
    
 -  len 
 -  the number of bytes to read.
    
 
Description
 Reads exactly len bytes from this file into the byte 
 array. This method reads repeatedly from the file until all the 
 bytes are read. This method blocks until all the bytes are read, 
 the end of the stream is detected, or an exception is thrown.
  
Exceptions
 EOFException
     if this file reaches the end before reading
               all the bytes.
    
Exceptions
 IOException
     if an I/O error occurs.