/libcore/luni/src/main/java/java/net/ |
H A D | URLDecoder.java | 25 * This class is used to decode a string which is encoded in the {@code 41 * @deprecated Use {@link #decode(String, String)} instead. 44 public static String decode(String s) { method in class:URLDecoder 45 return UriCodec.decode(s, true, Charset.defaultCharset(), true); 59 public static String decode(String s, String charsetName) throws UnsupportedEncodingException { method in class:URLDecoder 60 return UriCodec.decode(s, true, Charset.forName(charsetName), true);
|
/libcore/luni/src/main/java/org/apache/harmony/security/asn1/ |
H A D | ASN1Type.java | 81 public final Object decode(byte[] encoded) throws IOException { method in class:ASN1Type 82 return decode(new DerInputStream(encoded)); 85 public final Object decode(byte[] encoded, int offset, int encodingLen) method in class:ASN1Type 87 return decode(new DerInputStream(encoded, offset, encodingLen)); 90 public final Object decode(InputStream in) throws IOException { method in class:ASN1Type 91 return decode(new DerInputStream(in)); 97 decode(decoder); 103 decode(decoder); 116 public abstract Object decode(BerInputStream in) throws IOException; method in class:ASN1Type
|
H A D | ASN1Explicit.java | 62 public Object decode(BerInputStream in) throws IOException { method in class:ASN1Explicit 70 in.content = type.decode(in);
|
H A D | ASN1Sequence.java | 39 public Object decode(BerInputStream in) throws IOException { method in class:ASN1Sequence
|
H A D | ASN1SequenceOf.java | 39 public Object decode(BerInputStream in) throws IOException { method in class:ASN1SequenceOf
|
H A D | ASN1Set.java | 39 public Object decode(BerInputStream in) throws IOException { method in class:ASN1Set
|
H A D | ASN1SetOf.java | 39 public Object decode(BerInputStream in) throws IOException { method in class:ASN1SetOf
|
H A D | ASN1Boolean.java | 62 public Object decode(BerInputStream in) throws IOException { method in class:ASN1Boolean
|
H A D | ASN1Implicit.java | 102 public Object decode(BerInputStream in) throws IOException { method in class:ASN1Implicit 116 in.content = type.decode(in);
|
H A D | ASN1Any.java | 72 public Object decode(BerInputStream in) throws IOException { method in class:ASN1Any
|
H A D | ASN1Enumerated.java | 63 public Object decode(BerInputStream in) throws IOException { method in class:ASN1Enumerated
|
H A D | ASN1OctetString.java | 61 @Override public Object decode(BerInputStream in) throws IOException { method in class:ASN1OctetString
|
/libcore/luni/src/test/java/libcore/java/net/ |
H A D | UrlEncodingTest.java | 35 * URLDecoder and URI disagree on what '+' should decode to. 38 assertEquals("a b", URLDecoder.decode("a+b")); 39 assertEquals("a b", URLDecoder.decode("a+b", "UTF-8")); 50 assertEquals("a b", URLDecoder.decode("a b")); 51 assertEquals("a b", URLDecoder.decode("a b", "UTF-8")); 80 URLDecoder.decode("%"); 85 URLDecoder.decode("%0"); 101 URLDecoder.decode("%0g"); 109 URLDecoder.decode("ab", null); 118 URLDecoder.decode("a [all...] |
/libcore/harmony-tests/src/test/java/tests/api/java/nio/charset/ |
H A D | CharsetDecoderTest.java | 199 * Class under test for CharBuffer decode(ByteBuffer) 208 decoder.decode(null); 214 CharBuffer out = decoder.decode(ByteBuffer.allocate(0)); 219 out = decoder.decode(in); 227 out = decoder.decode(in); 246 CharBuffer buffer = decoder.decode(in); 255 out = decoder.decode(in); 261 out = decoder.decode(in); 271 decoder.decode(in); 279 out = decoder.decode(i [all...] |
H A D | UTF16CharsetEncoderTest.java | 122 assertEquals(decoder.decode(out), decoder.decode(ByteBuffer
|
/libcore/luni/src/main/java/org/apache/harmony/security/x509/ |
H A D | SubjectKeyIdentifier.java | 53 public static SubjectKeyIdentifier decode(byte[] encoding) method in class:SubjectKeyIdentifier 56 ASN1OctetString.getInstance().decode(encoding));
|
H A D | InhibitAnyPolicy.java | 47 ASN1Integer.getInstance().decode(encoding)).intValue();
|
H A D | CRLDistributionPoints.java | 86 public static CRLDistributionPoints decode(byte[] encoding) throws IOException { method in class:CRLDistributionPoints 87 return (CRLDistributionPoints) ASN1.decode(encoding);
|
/libcore/luni/src/test/java/libcore/java/nio/charset/ |
H A D | CharsetDecoderTest.java | 36 assertEquals("\u6d61x", d.decode(in).toString()); 46 CoderResult coderResult = decoder.decode(inBuffer, outBuffer, true); 62 CoderResult coderResult = decoder.decode(inBuffer, outBuffer, true); 75 CharBuffer outBuffer = decoder.decode(ByteBuffer.wrap(arr, offset, arr.length - offset)); 95 cr = decoder.decode(ByteBuffer.wrap(new byte[] { (byte) 0xe2 }), cb, false); 97 cr = decoder.decode(ByteBuffer.wrap(new byte[] { (byte) 0x98 }), cb, false); 99 cr = decoder.decode(ByteBuffer.wrap(new byte[] { (byte) 0x83 }), cb, false); 101 cr = decoder.decode(ByteBuffer.wrap(new byte[0]), cb, true);
|
H A D | OldCharsetEncoderDecoderBufferTest.java | 33 * (CharsetDecoderICU) when a decode operation 43 decoder.decode(ByteBuffer.wrap(new byte[]{(byte)'a', (byte)'b', (byte)'c', (byte)'d'}), 53 decoder.decode(ByteBuffer.wrap(new byte[]{(byte)'x'}), out, true); 58 // check if the first buffer was corrupted by the second decode 65 * (CharsetDecoderICU) when a decode operation 76 decoder.decode(inWithArray, out, false); 83 decoder.decode(inWithoutArray, out, true); 85 // check whether the first buffer was corrupted by the second decode 116 // check whether the second decode corrupted the first buffer 143 // check whether the second decode corrupte [all...] |
/libcore/luni/src/main/java/java/security/ |
H A D | Certificate.java | 50 public void decode(InputStream stream) throws KeyException, IOException; method in interface:Certificate 54 * {@link #decode(InputStream)} method must be able to decode the format 63 * @see #decode(InputStream)
|
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/net/ |
H A D | URLEncoderTest.java | 38 assertTrue("1. Incorrect encoding/decoding", URLDecoder.decode( 40 assertTrue("2. Incorrect encoding/decoding", URLDecoder.decode( 42 assertTrue("3. Incorrect encoding/decoding", URLDecoder.decode(
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/nio_char/tests/java/nio/charset/ |
H A D | CharsetDecoderTest.java | 67 * @tests java.nio.charset.CharsetDecoder#decode(java.nio.ByteBuffer) 76 // decoder.decode(bb); 81 // CharBuffer charbuf = Charset.forName("UTF-16").decode(buf); 84 // charbuf = Charset.forName("UTF-16BE").decode(buf); 87 // charbuf = Charset.forName("UTF-16LE").decode(buf); 96 decoder2.decode(in); 104 * Test malfunction decode(ByteBuffer) 111 .onUnmappableCharacter(CodingErrorAction.REPLACE).decode( 121 cs2.decode(ByteBuffer.wrap(new byte[] { 0x00, 0x11 })); 122 fail("Assert 1: Charset.decode shoul [all...] |
/libcore/luni/src/main/java/org/apache/harmony/security/provider/cert/ |
H A D | X509CertPathImpl.java | 189 return (X509CertPathImpl) ASN1.decode(in); 191 throw new CertificateException("Failed to decode CertPath", e); 213 return (X509CertPathImpl) ASN1.decode(in); 215 return getCertPathFromContentInfo((ContentInfo) ContentInfo.ASN1.decode(in)); 220 throw new CertificateException("Failed to decode CertPath", e); 232 return (X509CertPathImpl) ASN1.decode(in); 234 throw new CertificateException("Failed to decode CertPath", e); 256 return (X509CertPathImpl) ASN1.decode(in); 258 return getCertPathFromContentInfo((ContentInfo) ContentInfo.ASN1.decode(in)); 263 throw new CertificateException("Failed to decode CertPat [all...] |
/libcore/luni/src/main/java/libcore/io/ |
H A D | Base64.java | 35 public static byte[] decode(byte[] in) { method in class:Base64 36 return decode(in, in.length); 39 public static byte[] decode(byte[] in, int len) { method in class:Base64
|