パッケージ org.postgresql.util
クラス ByteBufferByteStreamWriter
java.lang.Object
org.postgresql.util.ByteBufferByteStreamWriter
- すべての実装されたインタフェース:
ByteStreamWriter
A
ByteStreamWriter
that writes a java.nio.ByteBuffer
to a byte array
parameter.-
ネストされたクラスの概要
インタフェースから継承されたネストされたクラス/インタフェース org.postgresql.util.ByteStreamWriter
ByteStreamWriter.ByteStreamTarget
-
コンストラクタの概要
コンストラクタ -
メソッドの概要
修飾子とタイプメソッド説明int
Returns the length of the stream.void
Write the data to the providedOutputStream
.
-
コンストラクタの詳細
-
ByteBufferByteStreamWriter
Construct the writer with the givenByteBuffer
- パラメータ:
buf
- the buffer to use.
-
-
メソッドの詳細
-
getLength
public int getLength()インタフェースからコピーされた説明:ByteStreamWriter
Returns the length of the stream.This must be known ahead of calling
ByteStreamWriter.writeTo(ByteStreamTarget)
.- 定義:
getLength
インタフェース内ByteStreamWriter
- 戻り値:
- the number of bytes in the stream.
-
writeTo
インタフェースからコピーされた説明:ByteStreamWriter
Write the data to the providedOutputStream
.Should not write more than
ByteStreamWriter.getLength()
bytes. If attempted, the provided stream will throw anIOException
.- 定義:
writeTo
インタフェース内ByteStreamWriter
- パラメータ:
target
- the stream to write the data to- 例外:
IOException
- if the underlying stream throws or there is some other error.
-