Class ByteSourceArray

    • Constructor Summary

      Constructors 
      Constructor Description
      ByteSourceArray​(byte[] bytes)  
      ByteSourceArray​(java.lang.String fileName, byte[] bytes)  
    • Constructor Detail

      • ByteSourceArray

        public ByteSourceArray​(java.lang.String fileName,
                               byte[] bytes)
      • ByteSourceArray

        public ByteSourceArray​(byte[] bytes)
    • Method Detail

      • getBlock

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

        public long getLength()
        Description copied from class: ByteSource
        This operation can be VERY expensive; for inputstream byte sources, the entire stream must be drained to determine its length.
        Specified by:
        getLength in class ByteSource
        Returns:
        the byte source length
      • getAll

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