java.lang.Objectjavax.xml.bind.annotation.adapters.XmlAdapter<String,byte[]>
javax.xml.bind.annotation.adapters.HexBinaryAdapter
public final class HexBinaryAdapter
xs:hexBinary 的 XmlAdapter。
此 XmlAdapter 将 byte[] 绑定到 XML 中的 hexBinary 表示形式。
| 构造方法摘要 | |
|---|---|
HexBinaryAdapter() |
|
| 方法摘要 | |
|---|---|
String |
marshal(byte[] bytes) 将 bound 类型转换为 value 类型。 |
byte[] |
unmarshal(String s) 将 value 类型转换为 bound 类型。 |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
public HexBinaryAdapter()
| 方法详细信息 |
|---|
public byte[] unmarshal(String s)
XmlAdapter 复制的描述
XmlAdapter<String,byte[]> 中的
unmarshal
s - 要转换的值。可以为 null。
public String marshal(byte[] bytes)
XmlAdapter 复制的描述
XmlAdapter<String,byte[]> 中的
marshal
bytes - 要转换的值。可以为 null。