Package nom.tam.util

Interface RandomAccess

  • All Superinterfaces:
    ArrayDataInput, java.lang.AutoCloseable, java.io.Closeable, java.io.DataInput, FitsIO
    All Known Implementing Classes:
    BufferedFile

    public interface RandomAccess
    extends ArrayDataInput
    These packages define the methods which indicate that an i/o stream may be accessed in arbitrary order. The method signatures are taken from RandomAccessFile though that class does not implement this interface.
    • Method Detail

      • getFilePointer

        long getFilePointer()
        Returns:
        the current position in the stream.
      • seek

        void seek​(long offsetFromStart)
           throws java.io.IOException
        Move to a specified location in the stream.
        Parameters:
        offsetFromStart - set the offset messured from the start
        Throws:
        java.io.IOException - if the operation fails