public abstract class SlicedInputStream extends InputStream
SlicedInputStream is a logical
concatenation one or more input streams. In contrast to the JDKs
SequenceInputStream this stream doesn't require the instantiation
of all logical sub-streams ahead of time. Instead, openSlice(long) is called
if a new slice is required. Each slice is closed once it's been fully consumed or if
close is called before.| 修飾子 | コンストラクタと説明 |
|---|---|
protected |
SlicedInputStream(long numSlices)
Creates a new SlicedInputStream
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
int |
available() |
void |
close() |
protected abstract InputStream |
openSlice(long slice)
Called for each logical slice given a zero based slice ordinal.
|
int |
read() |
int |
read(byte[] buffer,
int offset,
int length) |
mark, markSupported, read, reset, skipprotected SlicedInputStream(long numSlices)
numSlices - the number of slices to consumeprotected abstract InputStream openSlice(long slice) throws IOException
IOExceptionpublic final int read()
throws IOException
read クラス内 InputStreamIOExceptionpublic final int read(byte[] buffer,
int offset,
int length)
throws IOException
read クラス内 InputStreamIOExceptionpublic final void close()
throws IOException
close インタフェース内 Closeableclose インタフェース内 AutoCloseableclose クラス内 InputStreamIOExceptionpublic final int available()
throws IOException
available クラス内 InputStreamIOExceptionCopyright © 2009–2016. All rights reserved.