Interface Seekable

  • All Known Subinterfaces:
    ABIFParser.DataAccess
    All Known Implementing Classes:
    CachingInputStream

    public interface Seekable
    This interface provides a collective name for IO classes that implement a seek function (e.g., RandomAccessFile).
    Author:
    Rhett Sutphin (UI CBCB)
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void seek​(long pos)
      Moves the pointer in the inputstream such that the byte starting at pos are returned by the next read.
    • Method Detail

      • seek

        void seek​(long pos)
           throws java.io.IOException
        Moves the pointer in the inputstream such that the byte starting at pos are returned by the next read.
        Parameters:
        pos - the position to which to seek
        Throws:
        java.io.IOException - when there's an I/O problem