クラス ByteArrayDecoder
java.lang.ObjectSE
org.springframework.core.codec.AbstractDecoder<T>
org.springframework.core.codec.AbstractDataBufferDecoder<byte[]>
org.springframework.core.codec.ByteArrayDecoder
- 実装されたすべてのインターフェース:
Decoder<byte[]>
byte
配列のデコーダー。- 導入:
- 5.0
- 作成者:
- Arjen Poutsma, Rossen Stoyanchev
フィールドサマリー
クラス org.springframework.core.codec.AbstractDecoder から継承されたフィールド
logger
コンストラクターのサマリー
メソッドのサマリー
修飾子と型メソッド説明boolean
canDecode
(ResolvableType elementType, MimeType mimeType) デコーダーが特定のターゲット要素型とソースストリームの MIME 型をサポートするかどうか。byte[]
decode
(DataBuffer dataBuffer, ResolvableType elementType, MimeType mimeType, MapSE<StringSE, ObjectSE> hints) データバッファを型 T のオブジェクトにデコードします。クラス org.springframework.core.codec.AbstractDataBufferDecoder から継承されたメソッド
decode, decodeDataBuffer, decodeToMono, getMaxInMemorySize, setMaxInMemorySize
クラス org.springframework.core.codec.AbstractDecoder から継承されたメソッド
getDecodableMimeTypes, getLogger, setLogger
クラス java.lang.ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSE
インターフェース org.springframework.core.codec.Decoder から継承されたメソッド
getDecodableMimeTypes
コンストラクターの詳細
ByteArrayDecoder
public ByteArrayDecoder()
メソッドの詳細
canDecode
インターフェースからコピーされた説明:Decoder
デコーダーが特定のターゲット要素型とソースストリームの MIME 型をサポートするかどうか。- 次で指定:
- インターフェース
Decoder<byte[]>
のcanDecode
- オーバーライド:
- クラス
AbstractDecoder<byte[]>
のcanDecode
- パラメーター:
elementType
- 出力ストリームのターゲット要素型mimeType
- デコードするストリームに関連付けられた MIME 型 (指定しない場合はnull
にすることができます)- 戻り値:
- サポートされている場合は
true
、サポートされていない場合はfalse
decode
public byte[] decode(DataBuffer dataBuffer, ResolvableType elementType, @Nullable MimeType mimeType, @Nullable MapSE<StringSE, ObjectSE> hints) インターフェースからコピーされた説明:Decoder
データバッファーを型 T のオブジェクトにデコードします。これは、個別のメッセージ(またはイベント)が完全に集約された形式で個別にデコードおよび処理されるシナリオで役立ちます。- パラメーター:
dataBuffer
- デコードするDataBuffer
elementType
- 予想される出力型mimeType
- データに関連付けられた MIME 型hints
- デコード方法に関する追加情報- 戻り値:
- デコードされた値、おそらく
null