intarsys runtime library

de.intarsys.tools.jaxb
Class HexBytesAdapter

java.lang.Object
  extended by javax.xml.bind.annotation.adapters.XmlAdapter<String,byte[]>
      extended by de.intarsys.tools.jaxb.HexBytesAdapter

public class HexBytesAdapter
extends XmlAdapter<String,byte[]>

Convert a hex string notation to a char[]


Constructor Summary
HexBytesAdapter()
           
 
Method Summary
 String marshal(byte[] v)
           
 byte[] unmarshal(String v)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HexBytesAdapter

public HexBytesAdapter()
Method Detail

marshal

public String marshal(byte[] v)
               throws Exception
Specified by:
marshal in class XmlAdapter<String,byte[]>
Throws:
Exception

unmarshal

public byte[] unmarshal(String v)
                 throws Exception
Specified by:
unmarshal in class XmlAdapter<String,byte[]>
Throws:
Exception

intarsys runtime library

Copyright © 2012 intarsys consulting GmbH. All Rights Reserved.