开发者

What xmlAdapter use JAXB to unmarshlad base64Binary

开发者 https://www.devze.com 2023-03-31 21:50 出处:网络
when I use hexBinary in xsd schema JAXB use HexBinaryAdapter to convert it into byte. But how JAXB convert when I use base64Binary in XSD schema ? there is no XmlAdapter. He use default xmlAdapter or

when I use hexBinary in xsd schema JAXB use HexBinaryAdapter to convert it into byte. But how JAXB convert when I use base64Binary in XSD schema ? there is no XmlAdapter. He use default xmlAdapter or what ? How it is conve开发者_如何转开发rting ? thx for help


There is none, because base64Binary is the JAXB default for handling binary data. You just annotate a byte[] field/property, and it's marshalled/unmarshalled automatically as base64Binary.

0

精彩评论

暂无评论...
验证码 换一张
取 消