intarsys runtime library

de.intarsys.tools.jaxb
Class HexStringAdapter

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

public class HexStringAdapter
extends XmlAdapter<String,String>

Convert a hex string notation to a String (UTF-8)


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

Constructor Detail

HexStringAdapter

public HexStringAdapter()
Method Detail

marshal

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

unmarshal

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

intarsys runtime library

Copyright © 2012 intarsys consulting GmbH. All Rights Reserved.