Transducer decorator that wraps another Transducer
and sets the expected MIME type to the context.
Combined with Transducer implementations (such as one for Image),
this is used to control the marshalling of the BLOB types.
| Modifier and Type | Field and Description |
|---|---|
| private final MimeType |
| Access | Constructor and Description |
|---|---|
| public |
| expectedMimeType | back to summary |
|---|---|
| private final MimeType expectedMimeType | |
| MimeTypedTransducer | back to summary |
|---|---|
| public MimeTypedTransducer(Transducer<V> core, MimeType expectedMimeType) | |
| back to summary | |
|---|---|
| public CharSequence print(V o) throws AccessorException Overrides org. Implements org. Doc from org. Converts the given value to its lexical representation.
| |
| writeLeafElement | back to summary |
|---|---|
| public void writeLeafElement(XMLSerializer w, Name tagName, V o, String fieldName) throws IOException, SAXException, XMLStreamException, AccessorException Overrides org. Implements org. Doc from org. Sends the result of the
| |
| writeText | back to summary |
|---|---|
| public void writeText(XMLSerializer w, V o, String fieldName) throws IOException, SAXException, XMLStreamException, AccessorException Overrides org. Implements org. Doc from org. Sends the result of the
| |