public class Jaxb2XmlDecoder extends AbstractDecoder<ObjectSE>
Object
(POJO)のストリームにデコードします。Jaxb2XmlEncoder
logger
コンストラクターと説明 |
---|
Jaxb2XmlDecoder() |
Jaxb2XmlDecoder(MimeType... supportedMimeTypes) 指定された MIME 型で Jaxb2XmlDecoder を作成します。 |
修飾子と型 | メソッドと説明 |
---|---|
boolean | canDecode(ResolvableType elementType, MimeType mimeType) デコーダーが特定のターゲット要素型とソースストリームの MIME 型をサポートするかどうか。 |
ObjectSE | decode(DataBuffer dataBuffer, ResolvableType targetType, MimeType mimeType, MapSE<StringSE, ObjectSE> hints) データバッファを型 T のオブジェクトにデコードします。 |
reactor.core.publisher.Flux<ObjectSE> | decode(Publisher<DataBuffer> inputStream, ResolvableType elementType, MimeType mimeType, MapSE<StringSE, ObjectSE> hints) DataBuffer 入力ストリームを T の Flux にデコードします。 |
reactor.core.publisher.Mono<ObjectSE> | decodeToMono(Publisher<DataBuffer> input, ResolvableType elementType, MimeType mimeType, MapSE<StringSE, ObjectSE> hints) DataBuffer 入力ストリームを T の Mono にデコードします。 |
int | getMaxInMemorySize() configured バイトカウント制限を返します。 |
FunctionSE<UnmarshallerSE, UnmarshallerSE> | getUnmarshallerProcessor() Unmarshaller インスタンスをカスタマイズするために構成されたプロセッサーを返します。 |
void | setMaxInMemorySize(int byteCount) このデコーダーでバッファーできる最大バイト数を設定します。 |
void | setUnmarshallerProcessor(FunctionSE<UnmarshallerSE, UnmarshallerSE> processor) Unmarshaller インスタンスをカスタマイズするようにプロセッサー機能を構成します。 |
getDecodableMimeTypes, getLogger, setLogger
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
getDecodableMimeTypes
public Jaxb2XmlDecoder()
public Jaxb2XmlDecoder(MimeType... supportedMimeTypes)
Jaxb2XmlDecoder
を作成します。supportedMimeTypes
- サポートされている MIME 型 public void setUnmarshallerProcessor(FunctionSE<UnmarshallerSE,UnmarshallerSE> processor)
processor
- 使用する関数 public FunctionSE<UnmarshallerSE,UnmarshallerSE> getUnmarshallerProcessor()
public void setMaxInMemorySize(int byteCount)
DataBufferLimitException
が発生します。デフォルトでは、これは 256K に設定されています。
byteCount
- バッファリングする最大バイト数、または無制限の場合は -1public int getMaxInMemorySize()
configured
バイトカウント制限を返します。public boolean canDecode(ResolvableType elementType, @Nullable MimeType mimeType)
Decoder
public reactor.core.publisher.Flux<ObjectSE> decode(Publisher<DataBuffer> inputStream, ResolvableType elementType, @Nullable MimeType mimeType, @Nullable MapSE<StringSE,ObjectSE> hints)
Decoder
DataBuffer
入力ストリームを T
の Flux にデコードします。inputStream
- デコードする DataBuffer
入力ストリーム elementType
- 出力ストリーム内の要素の予想される型。この型は、事前に Decoder.canDecode(org.springframework.core.ResolvableType, org.springframework.util.MimeType)
メソッドに渡されている必要があり、true
を返している必要があります。mimeType
- 入力ストリームに関連付けられた MIME 型 (オプション)hints
- デコード方法に関する追加情報 public reactor.core.publisher.Mono<ObjectSE> decodeToMono(Publisher<DataBuffer> input, ResolvableType elementType, @Nullable MimeType mimeType, @Nullable MapSE<StringSE,ObjectSE> hints)
Decoder
DataBuffer
入力ストリームを T
の Mono にデコードします。Decoder<ObjectSE>
の decodeToMono
AbstractDecoder<ObjectSE>
の decodeToMono
input
- デコードする DataBuffer
入力ストリーム elementType
- 出力ストリーム内の要素の予想される型。この型は、事前に Decoder.canDecode(org.springframework.core.ResolvableType, org.springframework.util.MimeType)
メソッドに渡されている必要があり、true
を返している必要があります。mimeType
- 入力ストリームに関連付けられた MIME 型 (オプション)hints
- デコード方法に関する追加情報 public ObjectSE decode(DataBuffer dataBuffer, ResolvableType targetType, @Nullable MimeType mimeType, @Nullable MapSE<StringSE,ObjectSE> hints) throws DecodingException
Decoder
dataBuffer
- デコードする DataBuffer
targetType
- 予想される出力型 mimeType
- データに関連付けられた MIME 型 hints
- デコード方法に関する追加情報 null
DecodingException