public final class InputSubstream
extends java.io.FilterInputStream
| コンストラクタと説明 |
|---|
InputSubstream(java.io.InputStream in,
long offset,
long length,
boolean closeSourceStream)
Constructs a new InputSubstream so that when callers start reading from
this stream they'll start at the specified offset in the real stream and
after they've read the specified length, this stream will look empty.
|
public InputSubstream(java.io.InputStream in,
long offset,
long length,
boolean closeSourceStream)
in - The input stream to wrap.offset - The offset, in bytes, into the specified input stream at which
to start reading data.length - The length, in bytes, of the specified input stream to return
through this stream.closeSourceStream - True if the wrapped InputStream should be closed when this
InputSubstream is closed.public int read()
throws java.io.IOException
read クラス内 java.io.FilterInputStreamjava.io.IOExceptionpublic int read(byte[] b,
int off,
int len)
throws java.io.IOException
read クラス内 java.io.FilterInputStreamjava.io.IOExceptionpublic void mark(int readlimit)
mark クラス内 java.io.FilterInputStreampublic void reset()
throws java.io.IOException
reset クラス内 java.io.FilterInputStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
close インタフェース内 java.io.Closeableclose インタフェース内 java.lang.AutoCloseableclose クラス内 java.io.FilterInputStreamjava.io.IOExceptionpublic int available()
throws java.io.IOException
available クラス内 java.io.FilterInputStreamjava.io.IOException