Home
last modified time | relevance | path

Searched refs:base64 (Results 1 – 2 of 2) sorted by relevance

/libcore/ojluni/src/main/java/java/util/
DBase64.java134 int[] base64 = Decoder.fromBase64; in getMimeEncoder() local
136 if (base64[b & 0xff] != -1) in getMimeEncoder()
422 char[] base64 = isURL ? toBase64URL : toBase64; in encodeBlock() local
427 dst[dp0++] = (byte)base64[(bits >>> 18) & 0x3f]; in encodeBlock()
428 dst[dp0++] = (byte)base64[(bits >>> 12) & 0x3f]; in encodeBlock()
429 dst[dp0++] = (byte)base64[(bits >>> 6) & 0x3f]; in encodeBlock()
430 dst[dp0++] = (byte)base64[bits & 0x3f]; in encodeBlock()
435 char[] base64 = isURL ? toBase64URL : toBase64; in encode0() local
456 dst[dp++] = (byte)base64[b0 >> 2]; in encode0()
458 dst[dp++] = (byte)base64[(b0 << 4) & 0x3f]; in encode0()
[all …]
/libcore/ojluni/src/test/java/util/Properties/
DPropertiesSerialization.java114 final String base64 = Base64.getEncoder().encodeToString(byteArray); in main() local
117 new ByteArrayInputStream(Base64.getDecoder().decode(base64)); in main()
124 System.out.println(dumpBase64SerialStream(base64)); in main()
132 private static String dumpBase64SerialStream(String base64) { in dumpBase64SerialStream() argument
143 final int last = base64.length() - 1; in dumpBase64SerialStream()
144 for (int i=0; i<base64.length();i++) { in dumpBase64SerialStream()
146 sb.append(base64.charAt(i)); in dumpBase64SerialStream()