HexBinaryAdapter (Java EE 5)

Java EE API


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[]>

Extends: ">XmlAdapter

xs:hexBinaryXmlAdapter

XmlAdapterbyte[] 绑定到 XML 中的 hexBinary 表示形式。

英文文档:

XmlAdapter for xs:hexBinary.

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

Since:
JAXB 2.0
Author:
Kohsuke Kawaguchi

Constructor Summary
 
Method Summary
 String
 byte[]
 
Methods inherited from class java.lang.Object
 

Constructor Detail

public HexBinaryAdapter()
英文文档:

HexBinaryAdapter

public HexBinaryAdapter()
Method Detail

public byte[] unmarshal(String s)
英文文档:

unmarshal

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

Specified by:
unmarshal in class XmlAdapter<String,byte[]>
Parameters:
s - The value to be converted. Can be null.

public String marshal(byte[] bytes)
英文文档:

marshal

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

Specified by:
marshal in class XmlAdapter<String,byte[]>
Parameters:
bytes - The value to be convereted. Can be null.


Submit a bug or feature

Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.

一看就知道只有菜鸟才干这么无知的事啦。

PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!