Class FSDataInputStream

    • Constructor Detail

      • FSDataInputStream

        public FSDataInputStream()
    • Method Detail

      • seek

        public abstract void seek​(long desired)
                           throws IOException
        Seek to the given offset from the start of the file. The next read() will be from that location. Can't seek past the end of the stream.
        Parameters:
        desired - the desired offset
        Throws:
        IOException - Thrown if an error occurred while seeking inside the input stream.
      • getPos

        public abstract long getPos()
                             throws IOException
        Gets the current position in the input stream.
        Returns:
        current position in the input stream
        Throws:
        IOException - Thrown if an I/O error occurred in the underlying stream implementation while accessing the stream's position.