Interface ReaderAtEnd
-
public interface ReaderAtEnd
Read raw data from the end of an underlying data source. The data source is usually a file, but any data source for which the concept of "end" makes sense can be used. For example, a byte buffer could be used as the underlying data source, e.g. for testing purposes.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Buffer
readAtEnd(int whence, int amount)
Readamount
bytes from the underlying data source, starting atwhence
bytes from the end of the data source.
-
-
-
Method Detail
-
readAtEnd
Buffer readAtEnd(int whence, int amount) throws IOException
Readamount
bytes from the underlying data source, starting atwhence
bytes from the end of the data source.- Parameters:
whence
- The offset from the end of the data source.amount
- The amount of data to read, in bytes.- Returns:
- An instance of
Buffer
. - Throws:
IOException
- if an error occurs while reading from the underlying data source.
-
-