public final class InputSubstream extends FilterInputStream
in
Constructor and Description |
---|
InputSubstream(InputStream in,
long offset,
long length,
boolean closeSourceStream)
新たなInputSubstreamを構築します。
指定されたoffsetおよびlengthを用いて、読み込み開始時に実際の入力ストリームから
offset及びlengthをとることで、部分的な入力ストリームを提供します。
|
Modifier and Type | Method and Description |
---|---|
int |
available() |
void |
close() |
void |
mark(int readlimit) |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
void |
reset() |
markSupported, read, skip
public InputSubstream(InputStream in, long offset, long length, boolean closeSourceStream)
in
- ラップする入力ストリームoffset
- オフセット値(バイト) 指定された入力ストリームの読み込み開始する位置length
- ストリーム長さ(バイト) 指定された入力ストリームのから読み取る長さcloseSourceStream
- このInputSubstreamが閉じられた時、ラップした入力ストリームも
閉じなければならないのであれば、truepublic int read() throws IOException
read
in class FilterInputStream
IOException
public int read(byte[] b, int off, int len) throws IOException
read
in class FilterInputStream
IOException
public void mark(int readlimit)
mark
in class FilterInputStream
public void reset() throws IOException
reset
in class FilterInputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class FilterInputStream
IOException
public int available() throws IOException
available
in class FilterInputStream
IOException
Copyright © 2018. All rights reserved.