@InterfaceAudience.Public
@InterfaceStability.Evolving
public interface PositionedReadable
Seekable.getPos() visible.| Modifier and Type | Method and Description | 
|---|---|
int | 
read(long position,
    byte[] buffer,
    int offset,
    int length)
Read up to the specified number of bytes, from a given
 position within a file, and return the number of bytes read. 
 | 
void | 
readFully(long position,
         byte[] buffer)
Read number of bytes equal to the length of the buffer, from a given
 position within a file. 
 | 
void | 
readFully(long position,
         byte[] buffer,
         int offset,
         int length)
Read the specified number of bytes, from a given
 position within a file. 
 | 
int read(long position,
       byte[] buffer,
       int offset,
       int length)
         throws IOException
position - position within filebuffer - destination bufferoffset - offset in the bufferlength - number of bytes to readIOException - IO problems.void readFully(long position,
             byte[] buffer,
             int offset,
             int length)
               throws IOException
position - position within filebuffer - destination bufferoffset - offset in the bufferlength - number of bytes to readIOException - IO problems.EOFException - the end of the data was reached before
 the read operation completedvoid readFully(long position,
             byte[] buffer)
               throws IOException
position - position within filebuffer - destination bufferIOException - IO problems.EOFException - the end of the data was reached before
 the read operation completedCopyright © 2018 Apache Software Foundation. All Rights Reserved.