/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); 66 public static String decode(String s, String encoding) throws UnsupportedEncodingException { method in class:URLDecoder 67 return UriCodec.decode(s, true, Charset.forName(encoding), 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
|
H A D | ASN1UTCTime.java | 76 @Override public Object decode(BerInputStream in) throws IOException { method in class:ASN1UTCTime
|
/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/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/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);
|
H A D | AlternativeName.java | 49 this.alternativeNames = (GeneralNames) GeneralNames.ASN1.decode(encoding);
|
H A D | CRLNumber.java | 45 number = new BigInteger((byte[]) 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/main/java/org/apache/harmony/security/provider/cert/ |
H A D | X509CertPathImpl.java | 144 return (X509CertPathImpl) ASN1.decode(in); 165 return (X509CertPathImpl) ASN1.decode(in); 168 ContentInfo ci = (ContentInfo) ContentInfo.ASN1.decode(in); 198 return (X509CertPathImpl) ASN1.decode(in); 219 return (X509CertPathImpl) ASN1.decode(in); 222 ContentInfo ci = (ContentInfo) ContentInfo.ASN1.decode(in); 320 Certificate.ASN1.decode((byte[]) encodings.get(i)))); 390 public Object decode(BerInputStream in) throws IOException { 411 public Object decode(BerInputStream in) throws IOException {
|
/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
|