public interface PositionedReadable
限定符和类型 | 方法和说明 |
---|---|
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 equalt 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 © 2009 The Apache Software Foundation