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, unget
public RangeInputByteStream(InputByteStream ibs, long[] ranges) throws IOException
ibs
- ranges
- IOException
public void close() throws IOException
close
in interface InputByteStream
close
in class InputByteStreamImpl
IOException
public long getPosition() throws IOException
getPosition
in interface InputByteStream
getPosition
in class InputByteStreamImpl
IOException
public long length() throws IOException
length
in interface InputByteStream
length
in class InputByteStreamImpl
InputByteStream
.IOException
public int read() throws IOException
read
in interface InputByteStream
read
in class InputByteStreamImpl
-1
if at or beyond EOF.IOException
public int read(byte[] bytes, int position, int length) throws IOException
read
in interface InputByteStream
read
in class InputByteStreamImpl
bytes
- The destination array.position
- The offset in the byte array to put the first byte read.length
- The number of bytes to read.IOException
public InputByteStream seek(long position) throws IOException
seek
in interface InputByteStream
seek
in class InputByteStreamImpl
position
- Where to set the current position.IOException
public InputByteStream slice(long begin, long length) throws IOException
slice
in interface InputByteStream
slice
in class InputByteStreamImpl
begin
- Offset within the current InputByteStream
to start the slice.length
- The length of the slice.InputByteStream
.IOException
public com.adobe.internal.io.stream.ChainedInputByteStream getChainedIBS()
public long[] getRanges()
Copyright © 2010 - 2020 Adobe. All Rights Reserved