public class EncodedByteArrayConverter extends java.lang.Object implements Converter, SingleValueConverter
| Modifier and Type | Field and Description |
|---|---|
private static Base64Encoder |
base64 |
private static ByteConverter |
byteConverter |
| Constructor and Description |
|---|
EncodedByteArrayConverter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canConvert(java.lang.Class type)
Determines whether the converter can marshall a particular type.
|
java.lang.Object |
fromString(java.lang.String str)
Unmarshals an Object from its single value representation.
|
void |
marshal(java.lang.Object source,
HierarchicalStreamWriter writer,
MarshallingContext context)
Convert an object to textual data.
|
java.lang.String |
toString(java.lang.Object obj)
Marshals an Object into a single value representation.
|
java.lang.Object |
unmarshal(HierarchicalStreamReader reader,
UnmarshallingContext context)
Convert textual data back into an object.
|
private java.lang.Object |
unmarshalIndividualByteElements(HierarchicalStreamReader reader,
UnmarshallingContext context) |
private static final Base64Encoder base64
private static final ByteConverter byteConverter
public boolean canConvert(java.lang.Class type)
ConverterMatchercanConvert in interface ConverterMatchertype - the Class representing the object type to be convertedpublic void marshal(java.lang.Object source,
HierarchicalStreamWriter writer,
MarshallingContext context)
Converterpublic java.lang.Object unmarshal(HierarchicalStreamReader reader, UnmarshallingContext context)
Converterprivate java.lang.Object unmarshalIndividualByteElements(HierarchicalStreamReader reader, UnmarshallingContext context)
public java.lang.String toString(java.lang.Object obj)
SingleValueConvertertoString in interface SingleValueConverterobj - the Object to be convertednullpublic java.lang.Object fromString(java.lang.String str)
SingleValueConverterfromString in interface SingleValueConverterstr - the String with the single value of the Object