Class RangeInputByteStream

  • All Implemented Interfaces:
    InputByteStream

    public class RangeInputByteStream
    extends InputByteStreamImpl
    This InputByteStreamImpl implementation is only for internal engineering use. It is used only by the digsig package to wrap the digestible slices of the pdf document. The resulting inputStream is used by the verifier interfaces.
    • Constructor Detail

      • RangeInputByteStream

        public RangeInputByteStream​(InputByteStream ibs,
                                    long[] ranges)
                             throws IOException
        Create a chainedIBS from the ranges of interest.
        Parameters:
        ibs -
        ranges -
        Throws:
        IOException
    • Method Detail

      • read

        public int read​(byte[] bytes,
                        int position,
                        int length)
                 throws IOException
        Only for internal engineering use. This api can change without notice.
        Specified by:
        read in interface InputByteStream
        Specified by:
        read in class InputByteStreamImpl
        Parameters:
        bytes - The destination array.
        position - The offset in the byte array to put the first byte read.
        length - The number of bytes to read.
        Throws:
        IOException
      • slice

        public InputByteStream slice​(long begin,
                                     long length)
                              throws IOException
        calls slice on underlying ChainedInputByteStream and returns it. Only for internal engineering use. This api can change without notice.
        Specified by:
        slice in interface InputByteStream
        Specified by:
        slice in class InputByteStreamImpl
        Parameters:
        begin - Offset within the current InputByteStream to start the slice.
        length - The length of the slice.
        Returns:
        A slice of the original InputByteStream.
        Throws:
        IOException
      • getChainedIBS

        public com.adobe.internal.io.stream.ChainedInputByteStream getChainedIBS()
        Only for internal engineering use. This api can change without notice.
      • getRanges

        public long[] getRanges()
        Only for internal engineering use. This api can change without notice.