Interface ReaderAtEnd
-
public interface ReaderAtEndRead 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 BufferreadAtEnd(int whence, int amount)Readamountbytes from the underlying data source, starting atwhencebytes from the end of the data source.
-
-
-
Method Detail
-
readAtEnd
Buffer readAtEnd(int whence, int amount) throws IOException
Readamountbytes from the underlying data source, starting atwhencebytes 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.
-
-