Package nom.tam.util

Interface RandomAccess

All Superinterfaces:
ArrayDataInput, AutoCloseable, Closeable, 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 Details

    • getFilePointer

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

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