/libcore/luni/src/main/java/java/net/ |
H A D | URLEncoder.java | 26 * This class is used to encode a string using the format required by 44 * Equivalent to {@code encode(s, "UTF-8")}. 46 * @deprecated use {@link #encode(String, String)} instead. 49 public static String encode(String s) { method in class:URLEncoder 50 return ENCODER.encode(s, Charsets.UTF_8); 56 public static String encode(String s, String charsetName) throws UnsupportedEncodingException { method in class:URLEncoder 57 return ENCODER.encode(s, Charset.forName(charsetName));
|
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/net/ |
H A D | URLEncoderTest.java | 30 * java.net.URLEncoder#encode(java.lang.String) 39 URLEncoder.encode(URL)).equals(URL)); 41 URLEncoder.encode(URL2)).equals(URL2)); 43 URLEncoder.encode(URL3)).equals(URL3)); 47 * URLEncoder#encode(String, String) 53 URLEncoder.encode("str", "unknown_enc"); 62 URLEncoder.encode(null, "harmony");
|
/libcore/luni/src/test/java/libcore/java/net/ |
H A D | UrlEncodingTest.java | 44 assertEquals("a%2Bb", URLEncoder.encode("a+b")); 45 assertEquals("a%2Bb", URLEncoder.encode("a+b", "UTF-8")); 60 assertEquals("a+b", URLEncoder.encode("a b")); 61 assertEquals("a+b", URLEncoder.encode("a b", "UTF-8")); 127 URLEncoder.encode("ab", null); 136 URLEncoder.encode("ab", ""); 157 URLEncoder.encode("ab", "no-such-charset"); 204 * Android's URLEncoder.encode() failed for surrogate pairs, encoding them 208 assertEquals("%00", URLEncoder.encode("\u0000", "UTF-8")); 209 assertEquals("%00", URLEncoder.encode("\u000 [all...] |
/libcore/luni/src/main/java/java/security/ |
H A D | Certificate.java | 38 * the data to encode must be that identified by {@link #getFormat()} and 39 * encoded by {@link #encode(OutputStream)}. 47 * @see #encode(OutputStream) 58 * the {@code OutputStream} to encode this certificate to. 65 public void encode(OutputStream stream) throws KeyException, IOException; method in interface:Certificate
|
/libcore/luni/src/test/java/libcore/java/nio/charset/ |
H A D | CharsetEncoderTest.java | 36 String output = ascii.decode(e.encode(CharBuffer.wrap(input))).toString(); 70 CoderResult cr = e.encode(CharBuffer.wrap(new char[] { '\ud842', '\udf9f' }), bb, false); 84 CoderResult cr = e.encode(CharBuffer.wrap(new char[] { '\udf9f' }), bb, false); 116 CoderResult cr = e.encode(CharBuffer.wrap(new char[] { '\ud842' }), bb, false); 119 cr = e.encode(CharBuffer.wrap(new char[] { '\udf9f' }), bb, false); 137 cr = e.encode(CharBuffer.wrap(new char[] { }), bb, true); 165 CoderResult cr = e.encode(CharBuffer.wrap(new char[] { '\ud842' }), bb, false); 168 cr = e.encode(CharBuffer.wrap(new char[] { '\udf9f' }), bb, false); 177 cr = e.encode(CharBuffer.wrap(new char[] { }), bb, true); 189 CoderResult cr = e.encode(CharBuffe [all...] |
H A D | OldCharsetEncoderDecoderBufferTest.java | 91 * (CharsetEncoderICU) when an encode operation 102 encoder.encode(CharBuffer.wrap("ab"), out, false); 114 encoder.encode(CharBuffer.wrap("x"), out, true); 123 * (CharsetEncoderICU) when an encode operation 134 encoder.encode(inWithArray, out, false); 141 encoder.encode(inWithoutArray, out, true);
|
H A D | CharsetDecoderTest.java | 42 byte[] arr = encode("UTF-16", "Android"); 56 byte[] arr = encode("UTF-16", "Android"); 72 byte[] arr = encode("UTF-16", "Android"); 86 private static byte[] encode(String charsetName, String s) throws Exception { method in class:CharsetDecoderTest 88 return encoder.encode(CharBuffer.wrap(s)).array();
|
H A D | OldCharset_MultiByte_EUC_JP.java | 516 ByteBuffer intermediateBB = encoder.encode(inputCB); 521 assertEqualCBs("decode(encode(A)) must be identical with A!",
|
H A D | OldCharset_MultiByte_EUC_JP_Android.java | 514 ByteBuffer intermediateBB = encoder.encode(inputCB); 519 assertEqualCBs("decode(encode(A)) must be identical with A!",
|
/libcore/luni/src/main/java/org/apache/harmony/security/x509/ |
H A D | InhibitAnyPolicy.java | 56 .encode(ASN1Integer.fromIntValue(skipCerts));
|
H A D | AlternativeName.java | 57 encoding = GeneralNames.ASN1.encode(alternativeNames);
|
H A D | CRLNumber.java | 60 encoding = ASN1.encode(number.toByteArray());
|
H A D | InvalidityDate.java | 58 encoding = ASN1.encode(date);
|
H A D | KeyUsage.java | 78 encoding = ASN1.encode(keyUsage);
|
H A D | ORAddress.java | 58 encoding = ASN1.encode(this);
|
H A D | SubjectKeyIdentifier.java | 70 encoding = ASN1OctetString.getInstance().encode(keyIdentifier);
|
/libcore/luni/src/main/java/java/nio/charset/ |
H A D | ModifiedUtf8.java | 96 public static void encode(byte[] dst, int offset, String s) { method in class:ModifiedUtf8 118 public static byte[] encode(String s) throws UTFDataFormatException { method in class:ModifiedUtf8 122 ModifiedUtf8.encode(result, SizeOf.SHORT, s);
|
H A D | CharsetEncoder.java | 31 * <p>Use {@link #encode(CharBuffer)} to encode an entire {@code CharBuffer} to a 32 * new {@code ByteBuffer}, or {@link #encode(CharBuffer, ByteBuffer, boolean)} for more 36 * <li>Invoke {@link #encode(CharBuffer, ByteBuffer, boolean) encode} with the {@code endOfInput} 39 * <p>The {@link #encode(CharBuffer, ByteBuffer, boolean) encode} method will 46 * <li>Invoke {@link #encode(CharBuffer, ByteBuffer, boolean) encode} for the last time with 93 // internal status indicates encode(CharBuffe 274 public final ByteBuffer encode(CharBuffer in) throws CharacterCodingException { method in class:CharsetEncoder 402 public final CoderResult encode(CharBuffer in, ByteBuffer out, boolean endOfInput) { method in class:CharsetEncoder [all...] |
H A D | Charset.java | 38 * and some can also <i>encode</i>, converting a sequence of characters into a byte sequence. 63 * <p>UTF-16 and UTF-32 encode characters directly, using their code point as a two- or four-byte 449 public final ByteBuffer encode(CharBuffer buffer) { method in class:Charset 453 .onUnmappableCharacter(CodingErrorAction.REPLACE).encode( 470 public final ByteBuffer encode(String s) { method in class:Charset 471 return encode(CharBuffer.wrap(s));
|
/libcore/luni/src/main/java/libcore/io/ |
H A D | DropBox.java | 57 System.out.println(tag + ": " + Base64.encode(data));
|
/libcore/luni/src/main/java/org/apache/harmony/security/pkcs7/ |
H A D | AuthenticatedAttributes.java | 53 encoding = ASN1.encode(this);
|
H A D | ContentInfo.java | 80 encoding = ASN1.encode(this); 122 ASN1OctetString.getInstance().encode(ci.content); 125 values[1] = SignedData.ASN1.encode(ci.content);
|
/libcore/luni/src/test/java/libcore/io/ |
H A D | Base64Test.java | 52 assertEquals(expected, Base64.encode(dataBytes));
|
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/ |
H A D | CertificateStub.java | 63 * @see java.security.Certificate#encode(java.io.OutputStream) 65 public void encode(OutputStream stream) throws KeyException, method in class:CertificateStub
|
/libcore/luni/src/main/java/libcore/icu/ |
H A D | NativeConverter.java | 21 public static native int encode(long converterHandle, char[] input, int inEnd, method in class:NativeConverter
|