Top Description Constructors Methods
javax.xml.bind.annotation.adapters

public final Class HexBinaryAdapter

extends XmlAdapter<String, byte[]>
Class Inheritance
Imports
javax.xml.bind.DatatypeConverter

XmlAdapter for xs:hexBinary.

This XmlAdapter binds byte[] to the hexBinary representation in XML.

Author
Kohsuke Kawaguchi
Since
1.6, JAXB 2.0

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String
marshal(byte[]
The value to be convereted. Can be null.
bytes
)

Implements abstract javax.xml.bind.annotation.adapters.XmlAdapter.marshal.

Convert a bound type to a value type.
public byte[]
unmarshal(String
The value to be converted. Can be null.
s
)

Implements abstract javax.xml.bind.annotation.adapters.XmlAdapter.unmarshal.

Convert a value type to a bound type.

Constructor Detail

HexBinaryAdapterback to summary
public HexBinaryAdapter()

Method Detail

marshalback to summary
public String marshal(byte[] bytes)

Implements abstract javax.xml.bind.annotation.adapters.XmlAdapter.marshal.

Doc from javax.xml.bind.annotation.adapters.XmlAdapter.marshal.

Convert a bound type to a value type.

Parameters
bytes:byte[]

The value to be convereted. Can be null.

unmarshalback to summary
public byte[] unmarshal(String s)

Implements abstract javax.xml.bind.annotation.adapters.XmlAdapter.unmarshal.

Doc from javax.xml.bind.annotation.adapters.XmlAdapter.unmarshal.

Convert a value type to a bound type.

Parameters
s:String

The value to be converted. Can be null.