public class Jaxb2XmlDecoder extends AbstractDecoder<ObjectSE>
Object(POJO)のストリームにデコードします。Jaxb2XmlEncoderlogger| コンストラクターと説明 |
|---|
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(org.reactivestreams.Publisher<DataBuffer> inputStream, ResolvableType elementType, MimeType mimeType, MapSE<StringSE, ObjectSE> hints)DataBuffer 入力ストリームを T の Flux にデコードします。 |
reactor.core.publisher.Mono<ObjectSE> | decodeToMono(org.reactivestreams.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, setLoggercloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSEpublic 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)
Decoderpublic reactor.core.publisher.Flux<ObjectSE> decode(org.reactivestreams.Publisher<DataBuffer> inputStream, ResolvableType elementType, @Nullable MimeType mimeType, @Nullable MapSE<StringSE,ObjectSE> hints)
DecoderDataBuffer 入力ストリームを 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(org.reactivestreams.Publisher<DataBuffer> input, ResolvableType elementType, @Nullable MimeType mimeType, @Nullable MapSE<StringSE,ObjectSE> hints)
DecoderDataBuffer 入力ストリームを 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
DecoderdataBuffer - デコードする DataBuffer targetType - 予想される出力型 mimeType - データに関連付けられた MIME 型 hints - エンコード方法に関する追加情報 nullDecodingException