Searched defs:encode (Results 1 - 16 of 16) 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, StandardCharsets.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/java/security/cert/
H A DExtension.java64 void encode(OutputStream out) throws IOException; method in interface:Extension
/libcore/luni/src/main/java/libcore/io/
H A DBase64.java135 public static String encode(byte[] in) { method in class:Base64
/libcore/dex/src/main/java/com/android/dex/
H A DMutf8.java89 public static void encode(byte[] dst, int offset, String s) { method in class:Mutf8
109 public static byte[] encode(String s) throws UTFDataFormatException { method in class:Mutf8
112 encode(result, 0, s);
/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
440 public final ByteBuffer encode(CharBuffer buffer) { method in class:Charset
444 .onUnmappableCharacter(CodingErrorAction.REPLACE).encode(
461 public final ByteBuffer encode(String s) { method in class:Charset
462 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
166 * @throws IllegalStateException if another encode proces
257 public final ByteBuffer encode(CharBuffer in) throws CharacterCodingException { method in class:CharsetEncoder
364 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/main/java/libcore/util/
H A DHexEncoding.java32 public static char[] encode(byte[] data) { method in class:HexEncoding
33 return encode(data, 0, data.length);
39 public static char[] encode(byte[] data, int offset, int len) { method in class:HexEncoding
/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/main/java/org/apache/harmony/security/x509/
H A DExtension.java179 rawExtnValue = ASN1OctetString.getInstance().encode(extnValue);
189 encoding = Extension.ASN1.encode(this);
195 public void encode(OutputStream out) throws IOException { method in class:Extension
/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 760 milliseconds