com.sun.xml.bind.v2.runtime

Class MimeTypedTransducer<V>

public final class MimeTypedTransducer<V> extends FilterTransducer<V>

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.

Constructor Summary
MimeTypedTransducer(Transducer<V> core, MimeType expectedMimeType)
Method Summary
CharSequenceprint(V o)
voidwriteLeafElement(XMLSerializer w, Name tagName, V o, String fieldName)
voidwriteText(XMLSerializer w, V o, String fieldName)

Constructor Detail

MimeTypedTransducer

public MimeTypedTransducer(Transducer<V> core, MimeType expectedMimeType)

Method Detail

print

CharSequence print(V o)

writeLeafElement

void writeLeafElement(XMLSerializer w, Name tagName, V o, String fieldName)

writeText

void writeText(XMLSerializer w, V o, String fieldName)