Package com.adobe.internal.io.stream
Class RangeInputByteStream
java.lang.Object
com.adobe.internal.io.stream.InputByteStreamImpl
com.adobe.internal.io.stream.RangeInputByteStream
- All Implemented Interfaces:
InputByteStream
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.
-
Field Summary
Fields inherited from interface com.adobe.internal.io.stream.InputByteStream
EOF -
Constructor Summary
ConstructorsConstructorDescriptionRangeInputByteStream(InputByteStream ibs, long[] ranges) Create a chainedIBS from the ranges of interest. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Only for internal engineering use.com.adobe.internal.io.stream.ChainedInputByteStreamOnly for internal engineering use.longOnly for internal engineering use.long[]Only for internal engineering use.longlength()Only for internal engineering use.intread()Only for internal engineering use.intread(byte[] bytes, int position, int length) Only for internal engineering use.seek(long position) Only for internal engineering use.slice(long begin, long length) calls slice on underlying ChainedInputByteStream and returns it.Methods inherited from class com.adobe.internal.io.stream.InputByteStreamImpl
bytesAvailable, eof, read, slice, toInputStream, toString, unget
-
Constructor Details
-
RangeInputByteStream
Create a chainedIBS from the ranges of interest.- Parameters:
ibs-ranges-- Throws:
IOException
-
-
Method Details
-
close
Only for internal engineering use. This api can change without notice.- Specified by:
closein interfaceInputByteStream- Specified by:
closein classInputByteStreamImpl- Throws:
IOException
-
getPosition
Only for internal engineering use. This api can change without notice.- Specified by:
getPositionin interfaceInputByteStream- Specified by:
getPositionin classInputByteStreamImpl- Returns:
- The current position.
- Throws:
IOException
-
length
Only for internal engineering use. This api can change without notice.- Specified by:
lengthin interfaceInputByteStream- Specified by:
lengthin classInputByteStreamImpl- Returns:
- Total number of bytes available in this
InputByteStream. - Throws:
IOException
-
read
Only for internal engineering use. This api can change without notice.- Specified by:
readin interfaceInputByteStream- Specified by:
readin classInputByteStreamImpl- Returns:
- The byte at the current position or
-1if at or beyond EOF. - Throws:
IOException
-
read
Only for internal engineering use. This api can change without notice.- Specified by:
readin interfaceInputByteStream- Specified by:
readin classInputByteStreamImpl- 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
-
seek
Only for internal engineering use. This api can change without notice.- Specified by:
seekin interfaceInputByteStream- Specified by:
seekin classInputByteStreamImpl- Parameters:
position- Where to set the current position.- Returns:
- This object.
- Throws:
IOException
-
slice
calls slice on underlying ChainedInputByteStream and returns it. Only for internal engineering use. This api can change without notice.- Specified by:
slicein interfaceInputByteStream- Specified by:
slicein classInputByteStreamImpl- Parameters:
begin- Offset within the currentInputByteStreamto 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.
-