Objects (POJOs).
Jaxb2XmlEncoder
| Modifier and Type | Field and Description |
|---|---|
| private static final XMLInputFactory | |
| private final JaxbContextContainer | |
| private int | |
| private Function | |
| private final XmlEventDecoder |
| Access | Constructor and Description |
|---|---|
| public | |
| public | Jaxb2XmlDecoder(MimeType...
supported MIME types supportedMimeTypes)Create a |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | canDecode(ResolvableType
the target element type for the output stream elementType, MimeType the mime type associated with the stream to decode
(can be mimeType)null if not specified)Overrides org. Implements org. Whether the decoder supports the given target element type and the MIME type of the source stream. |
| public Flux | decode(Publisher<DataBuffer>
the inputStream, ResolvableType DataBuffer input stream to decodethe expected type of elements in the output stream;
this type must have been previously passed to the elementType, MimeType canDecode
method and it must have returned true.the MIME type associated with the input stream (optional) mimeType, Map<String, Object> additional information about how to do decode hints)Implements org. Decode a |
| public Object | decode(DataBuffer
the dataBuffer, ResolvableType DataBuffer to decodethe expected output type targetType, MimeType the MIME type associated with the data mimeType, Map<String, Object> additional information about how to do decode hints)Overrides default org. Decode a data buffer to an Object of type T. |
| public Mono | decodeToMono(Publisher<DataBuffer>
the input, ResolvableType DataBuffer input stream to decodethe expected type of elements in the output stream;
this type must have been previously passed to the elementType, MimeType canDecode
method and it must have returned true.the MIME type associated with the input stream (optional) mimeType, Map<String, Object> additional information about how to do decode hints)Overrides org. Implements org. Decode a |
| private static String | |
| public int | |
| public Function | |
| private Unmarshaller | |
| public void | setMaxInMemorySize(int
the max number of bytes to buffer, or -1 for unlimited byteCount)Set the max number of bytes that can be buffered by this decoder. |
| public void | setUnmarshallerProcessor(Function<Unmarshaller, Unmarshaller>
the function to use processor)Configure a processor function to customize Unmarshaller instances. |
| private Object |
| inputFactory | back to summary |
|---|---|
| private static final XMLInputFactory inputFactory | |
| jaxbContexts | back to summary |
|---|---|
| private final JaxbContextContainer jaxbContexts | |
| maxInMemorySize | back to summary |
|---|---|
| private int maxInMemorySize | |
| unmarshallerProcessor | back to summary |
|---|---|
| private Function<Unmarshaller, Unmarshaller> unmarshallerProcessor | |
| xmlEventDecoder | back to summary |
|---|---|
| private final XmlEventDecoder xmlEventDecoder | |
| Jaxb2XmlDecoder | back to summary |
|---|---|
| public Jaxb2XmlDecoder() | |
| Jaxb2XmlDecoder | back to summary |
|---|---|
| public Jaxb2XmlDecoder(MimeType... supportedMimeTypes) Create a
| |
| canDecode | back to summary |
|---|---|
| public boolean canDecode(ResolvableType elementType, MimeType mimeType) Overrides org. Implements org. Doc from org. Whether the decoder supports the given target element type and the MIME type of the source stream.
| |
| decode | back to summary |
|---|---|
| public Flux Implements org. Doc from org. Decode a
| |
| decode | back to summary |
|---|---|
| public Object decode(DataBuffer dataBuffer, ResolvableType targetType, MimeType mimeType, Map<String, Object> hints) throws DecodingException Overrides default org. Doc from org. Decode a data buffer to an Object of type T. This is useful for scenarios, that distinct messages (or events) are decoded and handled individually, in fully aggregated form.
| |
| decodeToMono | back to summary |
|---|---|
| public Mono Overrides org. Implements org. Doc from org. Decode a
| |
| encoding | back to summary |
|---|---|
private static String encoding(MimeType mimeType)
| |
| getMaxInMemorySize | back to summary |
|---|---|
| public int getMaxInMemorySize() Return the
| |
| getUnmarshallerProcessor | back to summary |
|---|---|
| public Function Return the configured processor for customizing Unmarshaller instances.
| |
| initUnmarshaller | back to summary |
|---|---|
| private Unmarshaller initUnmarshaller(Class<?> outputClass) throws CodecException, JAXBException | |
| setMaxInMemorySize | back to summary |
|---|---|
| public void setMaxInMemorySize(int byteCount) Set the max number of bytes that can be buffered by this decoder.
This is either the size of the entire input when decoding as a whole, or when
using async parsing with Aalto XML, it is the size of one top-level XML tree.
When the limit is exceeded, By default this is set to 256K.
| |
| setUnmarshallerProcessor | back to summary |
|---|---|
| public void setUnmarshallerProcessor(Function<Unmarshaller, Unmarshaller> processor) Configure a processor function to customize Unmarshaller instances.
| |
| unmarshal | back to summary |
|---|---|
| private Object unmarshal(List<XMLEvent> events, Class<?> outputClass) | |