public class RangeInputByteStream extends InputByteStreamImpl
EOF| Constructor and Description |
|---|
RangeInputByteStream(InputByteStream ibs,
long[] ranges)
Create a chainedIBS from the ranges of interest.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Only for internal engineering use.
|
com.adobe.internal.io.stream.ChainedInputByteStream |
getChainedIBS()
Only for internal engineering use.
|
long |
getPosition()
Only for internal engineering use.
|
long[] |
getRanges()
Only for internal engineering use.
|
long |
length()
Only for internal engineering use.
|
int |
read()
Only for internal engineering use.
|
int |
read(byte[] bytes,
int position,
int length)
Only for internal engineering use.
|
InputByteStream |
seek(long position)
Only for internal engineering use.
|
InputByteStream |
slice(long begin,
long length)
calls slice on underlying ChainedInputByteStream and returns it.
|
bytesAvailable, eof, read, slice, toInputStream, toString, ungetpublic RangeInputByteStream(InputByteStream ibs, long[] ranges) throws IOException
ibs - ranges - IOExceptionpublic void close()
throws IOException
close in interface InputByteStreamclose in class InputByteStreamImplIOExceptionpublic long getPosition()
throws IOException
getPosition in interface InputByteStreamgetPosition in class InputByteStreamImplIOExceptionpublic long length()
throws IOException
length in interface InputByteStreamlength in class InputByteStreamImplInputByteStream.IOExceptionpublic int read()
throws IOException
read in interface InputByteStreamread in class InputByteStreamImpl-1 if at or beyond EOF.IOExceptionpublic int read(byte[] bytes,
int position,
int length)
throws IOException
read in interface InputByteStreamread in class InputByteStreamImplbytes - The destination array.position - The offset in the byte array to put the first byte read.length - The number of bytes to read.IOExceptionpublic InputByteStream seek(long position) throws IOException
seek in interface InputByteStreamseek in class InputByteStreamImplposition - Where to set the current position.IOExceptionpublic InputByteStream slice(long begin, long length) throws IOException
slice in interface InputByteStreamslice in class InputByteStreamImplbegin - Offset within the current InputByteStream to start the slice.length - The length of the slice.InputByteStream.IOExceptionpublic com.adobe.internal.io.stream.ChainedInputByteStream getChainedIBS()
public long[] getRanges()
Copyright © 2010 - 2020 Adobe. All Rights Reserved