/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/main/java/libcore/io/ |
H A D | Base64.java | 135 public static String encode(byte[] in) { method in class:Base64
|
/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 | 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));
|
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...] |
/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 | 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();
|
/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/net/ |
H A D | UriCodec.java | 29 * <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 D | ASN1Type.java | 106 public final byte[] encode(Object object) { method in class:ASN1Type
|
/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
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
H A D | Identity2Test.java | 58 public void encode(OutputStream out) { method in class:Identity2Test.CertificateImpl
|