Home
last modified time | relevance | path

Searched refs:Encoder (Results 1 – 7 of 7) sorted by relevance

/libcore/ojluni/src/main/java/java/util/
DBase64.java89 public static Encoder getEncoder() { in getEncoder()
90 return Encoder.RFC4648; in getEncoder()
100 public static Encoder getUrlEncoder() { in getUrlEncoder()
101 return Encoder.RFC4648_URLSAFE; in getUrlEncoder()
110 public static Encoder getMimeEncoder() { in getMimeEncoder()
111 return Encoder.RFC2045; in getMimeEncoder()
132 public static Encoder getMimeEncoder(int lineLength, byte[] lineSeparator) { in getMimeEncoder()
143 return Encoder.RFC4648; in getMimeEncoder()
145 return new Encoder(false, lineSeparator, lineLength, true); in getMimeEncoder()
198 public static class Encoder { class in Base64
[all …]
/libcore/ojluni/src/test/java/util/Base64/
DBase64GetEncoderTest.java47 final Base64.Encoder encoder = Base64.getMimeEncoder(maxlen, "$$$".getBytes(US_ASCII)); in main()
56 private static void testWrapEncode2(final Base64.Encoder encoder) in testWrapEncode2()
82 final Base64.Encoder encoder) { in testEncodeToStringWithLongInputData()
100 private static void testWrapEncode1(final Base64.Encoder encoder) in testWrapEncode1()
124 private static void testEncodeToString(final Base64.Encoder encoder) { in testEncodeToString()
DTestBase64Golden.java44 import java.util.Base64.Encoder;
71 public static void test0(Base64Type type, Encoder encoder, Decoder decoder, in test0()
162 Encoder encoder = Base64.getMimeEncoder(49, new byte[] { 0x7e }); in test1()
DTestBase64.java154 private static void test(Base64.Encoder enc, Base64.Decoder dec, in test()
295 private static void testNull(Base64.Encoder enc) { in testNull()
318 private static void testIOE(Base64.Encoder enc) throws Throwable { in testIOE()
370 Base64.Encoder encM = Base64.getMimeEncoder(); in testDecodeIgnoredAfterPadding()
372 Base64.Encoder enc = Base64.getEncoder(); in testDecodeIgnoredAfterPadding()
488 private static final void testEncode(Base64.Encoder enc, ByteBuffer bin, byte[] expected) in testEncode()
553 private static void testEncoderKeepsSilence(Base64.Encoder enc) in testEncoderKeepsSilence()
Dplain.txt2 It is used to test java.util.Base64.Encoder, and will be encoded by org.apache.commons.codec.binary…
/libcore/luni/src/test/java/libcore/java/util/
DBase64Test.java31 import java.util.Base64.Encoder;
83 Encoder encoder) { in checkAlphabet()
519 private static void checkEncoder_nullArgs(Encoder encoder) { in checkEncoder_nullArgs()
528 Encoder encoder = Base64.getUrlEncoder(); in testEncoder_nonPrintableBytes()
556 Encoder encoder = Base64.getMimeEncoder(); in testEncoder_lineLength()
637 Encoder encoder = Base64.getEncoder(); in testEncoder_encodeArrayToArray()
670 Encoder encoder = Base64.getEncoder(); in testEncoder_encodeByteBuffer()
695 Encoder encoder, ByteBuffer inputBuffer, byte[] expectedBytes) { in testEncoder_encodeByteBuffer()
724 private static void checkRoundTrip_empty(Encoder encoder, Decoder decoder) { in checkRoundTrip_empty()
782 private static void checkRoundTrip_simple(Encoder encoder, Decoder decoder) throws Exception { in checkRoundTrip_simple()
[all …]
/libcore/api/
Dcurrent.txt13398 method public static java.util.Base64.Encoder getEncoder();
13400 method public static java.util.Base64.Encoder getMimeEncoder();
13401 method public static java.util.Base64.Encoder getMimeEncoder(int, byte[]);
13403 method public static java.util.Base64.Encoder getUrlEncoder();
13414 public static class Base64.Encoder {
13419 method public java.util.Base64.Encoder withoutPadding();