List of utility methods to do XML Base64 Encode Decode
String | base64(final byte[] bytes) base return DatatypeConverter.printBase64Binary(bytes);
|
String | base64(final byte[] bytes) Converts the given byte array to a base64 string. return DatatypeConverter.printBase64Binary(bytes);
|
byte[] | base64Decode(String base64) base Decode return DatatypeConverter.parseBase64Binary(base64);
|
byte[] | base64decode(String base64Content) basedecode return DatatypeConverter.parseBase64Binary(base64Content);
|
byte[] | base64Decode(String property) base Decode return DatatypeConverter.parseBase64Binary(property);
|
String | base64en(String string) baseen return DatatypeConverter.printBase64Binary(string.getBytes());
|
String | base64Encode(byte[] bytes) base Encode BASE64Encoder bd = new BASE64Encoder(); return bd.encode(bytes); |
String | base64Encode(byte[] bytes) Encodes binary data as a base64-encoded string. if (bytes == null) return null; return javax.xml.bind.DatatypeConverter.printBase64Binary(bytes); |
String | base64Encode(byte[] bytes) base Encode return javax.xml.bind.DatatypeConverter.printBase64Binary(bytes);
|
String | base64encode(byte[] bytes, boolean pad) baseencode StringBuilder sb = new StringBuilder(); sb.append(javax.xml.bind.DatatypeConverter.printBase64Binary(bytes)); while (!pad && sb.charAt(sb.length() - 1) == '=') { sb.deleteCharAt(sb.length() - 1); return sb.toString(); |