Searched refs:decode (Results 1 - 25 of 102) sorted by relevance

12345

/libcore/luni/src/main/java/java/net/
H A DURLDecoder.java25 * 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 DASN1Type.java81 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 DASN1Explicit.java62 public Object decode(BerInputStream in) throws IOException { method in class:ASN1Explicit
70 in.content = type.decode(in);
H A DASN1Sequence.java39 public Object decode(BerInputStream in) throws IOException { method in class:ASN1Sequence
H A DASN1SequenceOf.java39 public Object decode(BerInputStream in) throws IOException { method in class:ASN1SequenceOf
H A DASN1Set.java39 public Object decode(BerInputStream in) throws IOException { method in class:ASN1Set
H A DASN1SetOf.java39 public Object decode(BerInputStream in) throws IOException { method in class:ASN1SetOf
H A DASN1Boolean.java62 public Object decode(BerInputStream in) throws IOException { method in class:ASN1Boolean
H A DASN1Implicit.java102 public Object decode(BerInputStream in) throws IOException { method in class:ASN1Implicit
116 in.content = type.decode(in);
H A DASN1Any.java72 public Object decode(BerInputStream in) throws IOException { method in class:ASN1Any
H A DASN1Enumerated.java63 public Object decode(BerInputStream in) throws IOException { method in class:ASN1Enumerated
H A DASN1OctetString.java61 @Override public Object decode(BerInputStream in) throws IOException { method in class:ASN1OctetString
H A DASN1UTCTime.java76 @Override public Object decode(BerInputStream in) throws IOException { method in class:ASN1UTCTime
/libcore/luni/src/test/java/libcore/java/net/
H A DUrlEncodingTest.java35 * 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 DURLEncoderTest.java38 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 DSubjectKeyIdentifier.java53 public static SubjectKeyIdentifier decode(byte[] encoding) method in class:SubjectKeyIdentifier
56 ASN1OctetString.getInstance().decode(encoding));
H A DInhibitAnyPolicy.java47 ASN1Integer.getInstance().decode(encoding)).intValue();
H A DCRLDistributionPoints.java86 public static CRLDistributionPoints decode(byte[] encoding) throws IOException { method in class:CRLDistributionPoints
87 return (CRLDistributionPoints) ASN1.decode(encoding);
H A DAlternativeName.java49 this.alternativeNames = (GeneralNames) GeneralNames.ASN1.decode(encoding);
H A DCRLNumber.java45 number = new BigInteger((byte[]) ASN1.decode(encoding));
/libcore/luni/src/test/java/libcore/java/nio/charset/
H A DCharsetDecoderTest.java36 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 DOldCharsetEncoderDecoderBufferTest.java33 * (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 DCertificate.java50 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 DX509CertPathImpl.java144 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 DBase64.java35 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

Completed in 430 milliseconds

12345