Class SeekableStream

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable
    Direct Known Subclasses:
    SeekableFileStream

    public abstract class SeekableStream
    extends java.io.InputStream
    User: jrobinso Date: Nov 29, 2009
    • Constructor Summary

      Constructors 
      Constructor Description
      SeekableStream()  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      abstract boolean eof()  
      abstract long length()  
      abstract long position()  
      void readFully​(byte[] b)
      Read enough bytes to fill the input buffer
      abstract void seek​(long position)  
      • Methods inherited from class java.io.InputStream

        available, close, mark, markSupported, nullInputStream, read, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, transferTo
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SeekableStream

        public SeekableStream()
    • Method Detail

      • seek

        public abstract void seek​(long position)
                           throws java.io.IOException
        Throws:
        java.io.IOException
      • position

        public abstract long position()
                               throws java.io.IOException
        Throws:
        java.io.IOException
      • readFully

        public void readFully​(byte[] b)
                       throws java.io.IOException
        Read enough bytes to fill the input buffer
        Throws:
        java.io.IOException
      • eof

        public abstract boolean eof()
                             throws java.io.IOException
        Throws:
        java.io.IOException
      • length

        public abstract long length()