HexBinaryAdapter (Java EE 5 SDK)

Java

Java EE 5 SDK

深圳电信培训中心.徐海蛟老师.


javax.xml.bind.annotation.adapters Class HexBinaryAdapter

java.lang.Object
  extended by javax.xml.bind.annotation.adapters.XmlAdapter<String,byte[]>
      extended by javax.xml.bind.annotation.adapters.HexBinaryAdapter

public final class HexBinaryAdapter
extends XmlAdapter<String,byte[]>

XmlAdapter for xs:hexBinary.

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

从以下版本开始:
JAXB 2.0
作者:
Kohsuke Kawaguchi

构造器摘要
HexBinaryAdapter()
           
 
方法摘要
 String marshal(byte[] bytes)
          Convert a bound type to a value type.
 byte[] unmarshal(String s)
          Convert a value type to a bound type.
 
类方法继承 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造器详细信息

HexBinaryAdapter

public HexBinaryAdapter()
方法详细信息

unmarshal

public byte[] unmarshal(String s)
Description copied from class: XmlAdapter
Convert a value type to a bound type.

规范说明:
unmarshal in class XmlAdapter<String,byte[]>
参数:
s - The value to be converted. Can be null.

marshal

public String marshal(byte[] bytes)
Description copied from class: XmlAdapter
Convert a bound type to a value type.

规范说明:
marshal in class XmlAdapter<String,byte[]>
参数:
bytes - The value to be convereted. Can be null.

Java EE 5 SDK

深圳电信培训中心.徐海蛟老师.


提交错误或意见

版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。深圳电信培训中心.徐海蛟老师教学参考.