Class ByteSource

    • Constructor Detail

      • ByteSource

        public ByteSource​(String fileName)
    • Method Detail

      • getBlock

        public abstract byte[] getBlock​(long start,
                                        int length)
                                 throws IOException
        Throws:
        IOException
      • getLength

        public abstract long getLength()
                                throws IOException
        This operation can be VERY expensive; for inputstream byte sources, the entire stream must be drained to determine its length.
        Returns:
        the byte source length
        Throws:
        IOException - if it fails to read the byte source data
      • getDescription

        public abstract String getDescription()
      • getFileName

        public final String getFileName()