Note: because Json Strings can not contain unescaped linefeeds, if linefeeds are included (as per last argument), they must be escaped. This adds overhead for decoding without improving readability. Alternatively if linefeeds are not included, resulting String value may violate the requirement of base64 RFC which mandates line-length of 76 characters and use of linefeeds. However, all {@link JsonParser} implementationsare required to accept such "long line base64"; as do typical production-level base64 decoders. @param bv Base64 variant to use: defines details such aswhether padding is used (and if so, using which character); what is the maximum line length before adding linefeed, and also the underlying alphabet to use.
Note: because Json Strings can not contain unescaped linefeeds, if linefeeds are included (as per last argument), they must be escaped. This adds overhead for decoding without improving readability. Alternatively if linefeeds are not included, resulting String value may violate the requirement of base64 RFC which mandates line-length of 76 characters and use of linefeeds. However, all {@link JsonParser} implementationsare required to accept such "long line base64"; as do typical production-level base64 decoders. @param b64variant Base64 variant to use: defines details such aswhether padding is used (and if so, using which character); what is the maximum line length before adding linefeed, and also the underlying alphabet to use.
Conceptually (infoset-wise), this produces the base64-encoded binary data on the output. But this allows implementations like FastInfoset or XOP to do the smart thing.
The use of this method has some restriction to support XOP. Namely, this method must be invoked as a sole content of an element.
(data,start,len) triplet identifies the binary data to be written. After the method invocation, the callee owns the buffer. @param contentType this mandatory parameter identifies the MIME type of the binary data. If the MIME type isn't known by the caller, "application/octet-stream" can be always used to indicate "I don't know." Never null.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|