@InterfaceAudience.Public @InterfaceStability.Evolving public interface PositionedReadable
Modifier and Type | Method and Description |
---|---|
int |
read(long position,
byte[] buffer,
int offset,
int length)
Read upto 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
IOException
void readFully(long position, byte[] buffer, int offset, int length) throws IOException
IOException
void readFully(long position, byte[] buffer) throws IOException
IOException
Copyright © 2015 Apache Software Foundation. All rights reserved.