开发者

What xmlAdapter use JAXB to unmarshlad base64Binary

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜