Searched defs:encode (Results 1 - 12 of 12) sorted by relevance

/libcore/luni/src/main/java/java/net/
H A DURLEncoder.java26 * 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/main/java/libcore/io/
H A DBase64.java135 public static String encode(byte[] in) { method in class:Base64
/libcore/luni/src/main/java/java/nio/charset/
H A DModifiedUtf8.java96 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 DCharset.java38 * 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));
H A DCharsetEncoder.java31 * <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...]
/libcore/luni/src/main/java/java/security/
H A DCertificate.java38 * 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 DCharsetDecoderTest.java42 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();
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/
H A DCertificateStub.java63 * @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/net/
H A DUriCodec.java29 * <p>By default, UTF-8 is used to encode escaped characters. A single input
130 public final String encode(String s, Charset charset) { method in class:UriCodec
/libcore/luni/src/main/java/org/apache/harmony/security/asn1/
H A DASN1Type.java106 public final byte[] encode(Object object) { method in class:ASN1Type
/libcore/luni/src/main/java/libcore/icu/
H A DNativeConverter.java21 public static native int encode(long converterHandle, char[] input, int inEnd, method in class:NativeConverter
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
H A DIdentity2Test.java58 public void encode(OutputStream out) { method in class:Identity2Test.CertificateImpl

Completed in 164 milliseconds