Class NonSeekableInputStream

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public class NonSeekableInputStream
    extends SeekableInputStream
    • Constructor Detail

      • NonSeekableInputStream

        public NonSeekableInputStream​(java.io.InputStream delegate)
    • Method Detail

      • canSeekHard

        public boolean canSeekHard()
        Specified by:
        canSeekHard in class SeekableInputStream
        Returns:
        true if it is possible to seek to an arbitrary position in this stream, even when it is behind the current position.
      • read

        public int read()
                 throws java.io.IOException
        Specified by:
        read in class java.io.InputStream
        Throws:
        java.io.IOException
      • read

        public int read​(byte[] buffer,
                        int offset,
                        int length)
                 throws java.io.IOException
        Overrides:
        read in class java.io.InputStream
        Throws:
        java.io.IOException
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Overrides:
        close in class java.io.InputStream
        Throws:
        java.io.IOException