public class BodyPart.OffsetInputStream extends InputStream
Constructor and Description |
---|
OffsetInputStream(RandomAccessContentInterface raci,
long start,
long end)
Constructs an OffsetInputStream
|
Modifier and Type | Method and Description |
---|---|
int |
available()
Gets the number of bytes remaining in the stream.
|
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
close, mark, markSupported, reset, skip
public OffsetInputStream(RandomAccessContentInterface raci, long start, long end) throws IOException
raci
- The RACI to retrieve the bytes fromstart
- The offset into the RACI of the first byte to returnend
- The offset into the RACI of the byte after the last byte to returnIOException
public int read() throws IOException
read
in class InputStream
IOException
public int read(byte[] b) throws IOException
read
in class InputStream
IOException
public int read(byte[] b, int off, int len) throws IOException
read
in class InputStream
IOException
public int available()
available
in class InputStream
Copyright © 2023. All rights reserved.