public final class HexBinaryAdapter extends XmlAdapter<java.lang.String,byte[]>
XmlAdapter
for xs:hexBinary.
This XmlAdapter
binds byte[] to the hexBinary representation in XML.
Constructor and Description |
---|
HexBinaryAdapter() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
marshal(byte[] bytes)
Convert a bound type to a value type.
|
byte[] |
unmarshal(java.lang.String s)
Convert a value type to a bound type.
|
public byte[] unmarshal(java.lang.String s)
XmlAdapter
unmarshal
in class XmlAdapter<java.lang.String,byte[]>
s
- The value to be converted. Can be null.public java.lang.String marshal(byte[] bytes)
XmlAdapter
marshal
in class XmlAdapter<java.lang.String,byte[]>
bytes
- The value to be convereted. Can be null.