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, skippublic 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 returnIOExceptionpublic int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b)
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionpublic int available()
available in class InputStreamCopyright © 2025. All rights reserved.