クラス ByteArrayCrLfSerializer
java.lang.ObjectSE
org.springframework.integration.ip.tcp.serializer.AbstractByteArraySerializer
org.springframework.integration.ip.tcp.serializer.AbstractPooledBufferByteArraySerializer
org.springframework.integration.ip.tcp.serializer.ByteArrayCrLfSerializer
- 実装されたすべてのインターフェース:
Aware
、ApplicationEventPublisherAware
、Deserializer<byte[]>
、Serializer<byte[]>
InputStream のデータを byte[] に読み取ります。データは \r \n で終了する必要があります(結果の byte[] には含まれません)。byte[] を OutputStream に書き込み、\r \n を追加します。
- 導入:
- 2.0
- 作成者:
- Gary Russell, Artem Bilan
フィールドのサマリー
フィールドクラス org.springframework.integration.ip.tcp.serializer.AbstractByteArraySerializer から継承されたフィールド
DEFAULT_MAX_MESSAGE_SIZE, logger
コンストラクターの概要
コンストラクターメソッドのサマリー
修飾子と型メソッド説明byte[]
doDeserialize
(InputStreamSE inputStream, byte[] buffer) inputStream 内のデータを byte[] に読み取ります。int
fillToCrLf
(InputStreamSE inputStream, byte[] buffer) void
serialize
(byte[] bytes, OutputStreamSE outputStream) byte[] をストリームに書き込み、\r \n を追加します。クラス org.springframework.integration.ip.tcp.serializer.AbstractPooledBufferByteArraySerializer から継承されたメソッド
copyToSizedArray, deserialize, setPoolSize, setPoolWaitTimeout
クラス org.springframework.integration.ip.tcp.serializer.AbstractByteArraySerializer から継承されたメソッド
checkClosure, getMaxMessageSize, publishEvent, setApplicationEventPublisher, setMaxMessageSize
クラス java.lang.ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSE
インターフェース org.springframework.core.serializer.Deserializer から継承されたメソッド
deserializeFromByteArray
インターフェース org.springframework.core.serializer.Serializer から継承されたメソッド
serializeToByteArray
フィールドの詳細
INSTANCE
単一の再利用可能なインスタンス。
コンストラクターの詳細
ByteArrayCrLfSerializer
public ByteArrayCrLfSerializer()
メソッドの詳細
doDeserialize
inputStream のデータを byte[] に読み取ります。データは CRLF (\r\n) で終了する必要があります。\r\n の直後にストリームが閉じられると (つまり、読み取り中のデータがない場合)、SoftEndOfStreamException
がスローされます。- 次で指定:
- クラス
AbstractPooledBufferByteArraySerializer
のdoDeserialize
- パラメーター:
inputStream
- 入力ストリーム。buffer
- 生の作業バッファ (maxMessageSize)。- 戻り値:
- デコードされたバイト。
- 例外:
IOExceptionSE
- io 例外。
fillToCrLf
serialize
byte[] をストリームに書き込み、\r \n を追加します。