クラス BlobInputStream
- すべての実装されたインタフェース:
Closeable
,AutoCloseable
-
コンストラクタの概要
コンストラクタコンストラクタ説明BlobInputStream
(LargeObject lo, int bsize) BlobInputStream
(LargeObject lo, int bsize, long limit) -
メソッドの概要
修飾子とタイプメソッド説明void
close()
Closes this input stream and releases any system resources associated with the stream.void
mark
(int readlimit) Marks the current position in this input stream.boolean
Tests if this input stream supports themark
andreset
methods.int
read()
The minimum required to implement input stream.int
read
(byte[] dest, int off, int len) void
reset()
Repositions this stream to the position at the time themark
method was last called on this input stream.クラスから継承されたメソッド java.io.InputStream
available, nullInputStream, read, readAllBytes, readNBytes, readNBytes, skip, skipNBytes, transferTo
-
コンストラクタの詳細
-
BlobInputStream
- パラメータ:
lo
- LargeObject to read from
-
BlobInputStream
- パラメータ:
lo
- LargeObject to read frombsize
- buffer size
-
BlobInputStream
- パラメータ:
lo
- LargeObject to read frombsize
- buffer sizelimit
- max number of bytes to read
-
-
メソッドの詳細
-
read
The minimum required to implement input stream.- 定義:
read
クラス内InputStream
- 例外:
IOException
-
read
- オーバーライド:
read
クラス内InputStream
- 例外:
IOException
-
close
Closes this input stream and releases any system resources associated with the stream.
The
close
method ofInputStream
does nothing.- 定義:
close
インタフェース内AutoCloseable
- 定義:
close
インタフェース内Closeable
- オーバーライド:
close
クラス内InputStream
- 例外:
IOException
- if an I/O error occurs.
-
mark
public void mark(int readlimit) Marks the current position in this input stream. A subsequent call to the
reset
method repositions this stream at the last marked position so that subsequent reads re-read the same bytes.The
readlimit
arguments tells this input stream to allow that many bytes to be read before the mark position gets invalidated.The general contract of
mark
is that, if the methodmarkSupported
returnstrue
, the stream somehow remembers all the bytes read after the call tomark
and stands ready to supply those same bytes again if and whenever the methodreset
is called. However, the stream is not required to remember any data at all if more thanreadlimit
bytes are read from the stream beforereset
is called.Marking a closed stream should not have any effect on the stream.
- オーバーライド:
mark
クラス内InputStream
- パラメータ:
readlimit
- the maximum limit of bytes that can be read before the mark position becomes invalid.- 関連項目:
-
reset
Repositions this stream to the position at the time themark
method was last called on this input stream. NB: If mark is not called we move to the beginning.- オーバーライド:
reset
クラス内InputStream
- 例外:
IOException
- 関連項目:
-
markSupported
public boolean markSupported()Tests if this input stream supports themark
andreset
methods. ThemarkSupported
method ofInputStream
returnsfalse
.- オーバーライド:
markSupported
クラス内InputStream
- 戻り値:
true
if this true type supports the mark and reset method;false
otherwise.- 関連項目:
-