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)
      Read amount bytes from the underlying data source, starting at whence bytes from the end of the data source.
    • Method Detail

      • readAtEnd

        Buffer readAtEnd​(int whence,
                         int amount)
                  throws java.io.IOException
        Read amount bytes from the underlying data source, starting at whence 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:
        java.io.IOException - if an error occurs while reading from the underlying data source.