Class SeekableInputStream

  • All Implemented Interfaces:
    Closeable, AutoCloseable, SeekableDecorator, org.aksw.commons.io.input.HasPosition, org.apache.hadoop.fs.Seekable

    public class SeekableInputStream
    extends org.apache.commons.io.input.ProxyInputStream
    implements SeekableDecorator, org.aksw.commons.io.input.HasPosition
    Combines Hadoop's Seekable and InputStream into one class
    • Field Detail

      • seekable

        protected org.apache.hadoop.fs.Seekable seekable
    • Constructor Detail

      • SeekableInputStream

        public SeekableInputStream​(InputStream proxy,
                                   org.apache.hadoop.fs.Seekable seekable)
        Constructs a new ProxyInputStream.
        Parameters:
        proxy - the InputStream to delegate to
    • Method Detail

      • position

        public long position()
        Specified by:
        position in interface org.aksw.commons.io.input.HasPosition
      • position

        public void position​(long pos)
        Specified by:
        position in interface org.aksw.commons.io.input.HasPosition