クラス AbstractCharSequenceDecoder<T extends CharSequenceSE>
java.lang.ObjectSE
org.springframework.core.codec.AbstractDecoder<T>
org.springframework.core.codec.AbstractDataBufferDecoder<T>
org.springframework.core.codec.AbstractCharSequenceDecoder<T>
- 型パラメーター:
T
- 文字シーケンスの型
- 実装されたすべてのインターフェース:
Decoder<T>
- 既知の直属サブクラス
CharBufferDecoder
,StringDecoder
public abstract class AbstractCharSequenceDecoder<T extends CharSequenceSE>
extends AbstractDataBufferDecoder<T>
データバッファーストリームから
CharSequence
ストリームにデコードする抽象基本クラス。- 導入:
- 6.1
- 作成者:
- Arjen Poutsma
フィールドサマリー
クラス org.springframework.core.codec.AbstractDecoder から継承されたフィールド
logger
コンストラクターのサマリー
修飾子コンストラクター説明protected
AbstractCharSequenceDecoder
(ListSE<StringSE> delimiters, boolean stripDelimiter, MimeType... mimeTypes) 指定されたパラメーターで新しいAbstractCharSequenceDecoder
を作成します。メソッドのサマリー
修飾子と型メソッド説明final reactor.core.publisher.Flux<T>
decode
(Publisher<DataBuffer> input, ResolvableType elementType, MimeType mimeType, MapSE<StringSE, ObjectSE> hints) DataBuffer
入力ストリームをT
の Flux にデコードします。final T
decode
(DataBuffer dataBuffer, ResolvableType elementType, MimeType mimeType, MapSE<StringSE, ObjectSE> hints) データバッファを型 T のオブジェクトにデコードします。protected abstract T
decodeInternal
(DataBuffer dataBuffer, CharsetSE charset) 指定された文字セットを使用して、指定されたデータバッファーをT
にデコードするテンプレートメソッド。設定されたdefaultCharset
を返します。void
setDefaultCharset
(CharsetSE defaultCharset) MimeType で何も指定されていない場合は、デフォルトの文字セットをフォールバックするように設定します。クラス org.springframework.core.codec.AbstractDataBufferDecoder から継承されたメソッド
decodeDataBuffer, decodeToMono, getMaxInMemorySize, setMaxInMemorySize
クラス org.springframework.core.codec.AbstractDecoder から継承されたメソッド
canDecode, getDecodableMimeTypes, getLogger, setLogger
クラス java.lang.ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSE
インターフェース org.springframework.core.codec.Decoder から継承されたメソッド
getDecodableMimeTypes
フィールドの詳細
DEFAULT_CHARSET
使用するデフォルトの文字セット、つまり "UTF-8"。DEFAULT_DELIMITERS
使用するデフォルトの区切り文字列、つまり\r\n
および\n
。
コンストラクターの詳細
メソッドの詳細
setDefaultCharset
MimeType で何も指定されていない場合は、デフォルトの文字セットをフォールバックするように設定します。デフォルトでは、これは
UTF-8
です。- パラメーター:
defaultCharset
- フォールバックする文字セット
getDefaultCharset
設定されたdefaultCharset
を返します。decode
public final reactor.core.publisher.Flux<T> decode(Publisher<DataBuffer> input, ResolvableType elementType, @Nullable MimeType mimeType, @Nullable MapSE<StringSE, ObjectSE> hints) インターフェースからコピーされた説明:Decoder
DataBuffer
入力ストリームをT
の Flux にデコードします。- 次で指定:
- インターフェース
Decoder<T extends CharSequenceSE>
のdecode
- オーバーライド:
- クラス
AbstractDataBufferDecoder<T extends CharSequenceSE>
のdecode
- パラメーター:
input
- デコードするDataBuffer
入力ストリームelementType
- 出力ストリーム内の要素の予想される型。この型は、事前にDecoder.canDecode(org.springframework.core.ResolvableType, org.springframework.util.MimeType)
メソッドに渡されている必要があり、true
を返している必要があります。mimeType
- 入力ストリームに関連付けられた MIME 型 (オプション)hints
- デコード方法に関する追加情報- 戻り値:
- デコードされた要素を含む出力ストリーム
decode
public final T decode(DataBuffer dataBuffer, ResolvableType elementType, @Nullable MimeType mimeType, @Nullable MapSE<StringSE, ObjectSE> hints) インターフェースからコピーされた説明:Decoder
データバッファーを型 T のオブジェクトにデコードします。これは、個別のメッセージ(またはイベント)が完全に集約された形式で個別にデコードおよび処理されるシナリオで役立ちます。- パラメーター:
dataBuffer
- デコードするDataBuffer
elementType
- 予想される出力型mimeType
- データに関連付けられた MIME 型hints
- デコード方法に関する追加情報- 戻り値:
- デコードされた値、おそらく
null
decodeInternal
指定された文字セットを使用して、指定されたデータバッファーをT
にデコードするテンプレートメソッド。