Class ByteSourceInputStream


  • public class ByteSourceInputStream
    extends ByteSource
    • Constructor Detail

      • ByteSourceInputStream

        public ByteSourceInputStream​(java.io.InputStream is,
                                     java.lang.String filename)
    • Method Detail

      • getInputStream

        public java.io.InputStream getInputStream()
                                           throws java.io.IOException
        Specified by:
        getInputStream in class ByteSource
        Throws:
        java.io.IOException
      • getBlock

        public byte[] getBlock​(long blockStart,
                               int blockLength)
                        throws java.io.IOException
        Specified by:
        getBlock in class ByteSource
        Throws:
        java.io.IOException
      • getLength

        public long getLength()
                       throws java.io.IOException
        Specified by:
        getLength in class ByteSource
        Throws:
        java.io.IOException
      • getAll

        public byte[] getAll()
                      throws java.io.IOException
        Specified by:
        getAll in class ByteSource
        Throws:
        java.io.IOException