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
.
精彩评论