Class ByteBufferInputStream

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

    public abstract class ByteBufferInputStream
    extends SeekableInputStream
    • Constructor Detail

      • ByteBufferInputStream

        public ByteBufferInputStream()
    • Method Detail

      • skipFully

        public void skipFully​(long length)
                       throws java.io.IOException
        Throws:
        java.io.IOException
      • read

        public abstract int read​(java.nio.ByteBuffer out)
      • slice

        public abstract java.nio.ByteBuffer slice​(int length)
                                           throws java.io.EOFException
        Throws:
        java.io.EOFException
      • sliceBuffers

        public abstract java.util.List<java.nio.ByteBuffer> sliceBuffers​(long length)
                                                                  throws java.io.EOFException
        Throws:
        java.io.EOFException
      • sliceStream

        public ByteBufferInputStream sliceStream​(long length)
                                          throws java.io.EOFException
        Throws:
        java.io.EOFException
      • remainingBuffers

        public abstract java.util.List<java.nio.ByteBuffer> remainingBuffers()