FileDocCategorySizeDatePackage
HexBinaryAdapter.javaAPI DocJava SE 6 API785Tue Jun 10 00:27:04 BST 2008javax.xml.bind.annotation.adapters

HexBinaryAdapter

public final class HexBinaryAdapter extends XmlAdapter
{@link XmlAdapter} for xs:hexBinary.

This {@link XmlAdapter} binds byte[] to the hexBinary representation in XML.

author
Kohsuke Kawaguchi
since
JAXB 2.0

Fields Summary
Constructors Summary
Methods Summary
public java.lang.Stringmarshal(byte[] bytes)

        if(bytes==null)     return null;
        return DatatypeConverter.printHexBinary(bytes);
    
public byte[]unmarshal(java.lang.String s)

        if(s==null)     return null;
        return DatatypeConverter.parseHexBinary(s);