Searched defs:decode (Results 1 - 25 of 29) sorted by relevance

12

/libcore/ojluni/src/main/java/java/net/
H A DURLDecoder.java64 * The encoding scheme used to decode these characters may be specified,
89 * @param s the {@code String} to decode
91 * default encoding. Instead, use the decode(String,String) method
96 public static String decode(String s) { method in class:URLDecoder
101 str = decode(s, dfltEncName);
122 * @param s the {@code String} to decode
133 public static String decode(String s, String enc) method in class:URLDecoder
/libcore/ojluni/src/main/java/sun/nio/cs/
H A DArrayDecoder.java34 int decode(byte[] src, int off, int len, char[] dst); method in interface:ArrayDecoder
/libcore/luni/src/main/java/java/nio/charset/
H A DModifiedUtf8.java118 public static String decode(byte[] in, char[] out, int offset, int length) method in class:ModifiedUtf8
/libcore/luni/src/main/java/libcore/util/
H A DHexEncoding.java58 public static byte[] decode(char[] encoded, boolean allowSingleChar) throws IllegalArgumentException { method in class:HexEncoding
/libcore/ojluni/src/main/java/java/security/
H A DCertificate.java43 * decode certificates) and some types of information, such as a
99 * be decoded by the {@code decode} method.
110 * @see #decode
133 public abstract void decode(InputStream stream) method in interface:Certificate
141 * and {@code decode} methods.
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/
H A DCertificateStub.java53 * @see java.security.Certificate#decode(java.io.InputStream)
55 public void decode(InputStream stream) throws KeyException, method in class:CertificateStub
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
H A DOutputStreamTesterTest.java152 public byte[] decode(byte[] delegateBytes) throws Exception { method in class:OutputStreamTesterTest.FilterOutputStreamTester
168 public byte[] decode(byte[] delegateBytes) throws Exception { method in class:OutputStreamTesterTest.BufferedOutputStreamTester
179 public byte[] decode(byte[] delegateBytes) throws Exception { method in class:OutputStreamTesterTest.DataOutputStreamTester
190 public byte[] decode(byte[] delegateBytes) throws Exception { method in class:OutputStreamTesterTest.ObjectOutputStreamTester
202 public byte[] decode(byte[] delegateBytes) throws Exception { method in class:OutputStreamTesterTest.PrintStreamTester
H A DWriterTesterTest.java168 public char[] decode(char[] delegateChars) throws Exception { method in class:WriterTesterTest.BufferedWriterCharSinkTester
181 public char[] decode(char[] delegateChars) throws Exception { method in class:WriterTesterTest.FilterWriterCharSinkTester
194 public char[] decode(char[] delegateChars) throws Exception { method in class:WriterTesterTest.PrintWriterCharSinkTester
/libcore/ojluni/src/main/java/sun/security/pkcs/
H A DPKCS8Key.java72 * by using <code>decode</code>.
154 * and <code>decode</code>.
323 public void decode(InputStream in) throws InvalidKeyException method in class:PKCS8Key
355 public void decode(byte[] encodedKey) throws InvalidKeyException { method in class:PKCS8Key
356 decode(new ByteArrayInputStream(encodedKey));
374 decode(stream);
H A DPKCS9Attributes.java98 // derEncoding initialized in <code>decode()</code>
99 derEncoding = decode(in);
139 // derEncoding initialized in <code>decode()</code>
140 derEncoding = decode(in);
186 private byte[] decode(DerInputStream in) throws IOException { method in class:PKCS9Attributes
/libcore/luni/src/main/java/libcore/net/
H A DUriCodec.java271 public static String decode( method in class:UriCodec
358 builder.append(decoder.decode(byteBuffer));
373 * Equivalent to {@code decode(s, false, UTF_8, true)}
375 public static String decode(String s) { method in class:UriCodec
376 return decode(
/libcore/luni/src/test/java/libcore/java/util/
H A DLibcoreIoDerivedBase64Test.java78 byte[] decoded = decode(new byte[0]);
210 * Use {@link #decodeToInts(String)} for decode tests that produce bytes
215 byte[] out = decode(bytes);
228 CharBuffer charsBuffer = decoder.decode(bytesBuffer);
260 byte[] bytes = decode(asciiToBytes(in));
264 private static byte[] decode(byte[] encoded) { method in class:LibcoreIoDerivedBase64Test
267 return decoder.decode(encoded);
/libcore/ojluni/src/main/java/java/lang/
H A DByte.java269 * @param nm the {@code String} to decode.
276 public static Byte decode(String nm) throws NumberFormatException { method in class:Byte
277 int i = Integer.decode(nm);
H A DShort.java275 * @param nm the {@code String} to decode.
282 public static Short decode(String nm) throws NumberFormatException { method in class:Short
283 int i = Integer.decode(nm);
H A DStringCoding.java155 char[] decode(byte[] ba, int off, int len) { method in class:StringCoding.StringDecoder
161 int clen = ((ArrayDecoder)cd).decode(ba, off, len, ca);
168 CoderResult cr = cd.decode(bb, cb, true);
184 static char[] decode(String charsetName, byte[] ba, int off, int len) method in class:StringCoding
201 return sd.decode(ba, off, len);
204 static char[] decode(Charset cs, byte[] ba, int off, int len) { method in class:StringCoding
237 int clen = ((ArrayDecoder)cd).decode(ba, off, len, ca);
243 CoderResult cr = cd.decode(bb, cb, true);
258 static char[] decode(byte[] ba, int off, int len) { method in class:StringCoding
261 // use charset name decode() varian
[all...]
H A DInteger.java1016 * value using the grammar supported by {@link Integer#decode decode} and
1050 * value using the grammar supported by {@link Integer#decode decode} and
1095 * integer value, as per the {@link Integer#decode decode} method,
1134 return Integer.decode(v);
1176 * @param nm the {@code String} to decode.
1183 public static Integer decode(String nm) throws NumberFormatException { method in class:Integer
/libcore/ojluni/src/main/java/java/nio/charset/
H A DCharsetDecoder.java58 * <li><p> Invoke the {@link #decode decode} method zero or more times, as
63 * <li><p> Invoke the {@link #decode decode} method one final time, passing
71 * Each invocation of the {@link #decode decode} method will decode as many
73 * to the output buffer. The {@link #decode decode} method returns when more
488 * insufficient space in the output buffer to decode an
562 public final CoderResult decode(ByteBuffer in, CharBuffer out, method in class:CharsetDecoder
787 public final CharBuffer decode(ByteBuffer in) method in class:CharsetDecoder
[all...]
H A DCharset.java837 * .decode(bb); </pre>
845 * CharsetDecoder#decode(java.nio.ByteBuffer)} method directly. </p>
851 public final CharBuffer decode(ByteBuffer bb) { method in class:Charset
856 .decode(bb);
/libcore/ojluni/src/main/java/sun/nio/fs/
H A DUnixUriUtils.java82 b = (byte)((decode(c1) << 4) | decode(c2));
189 // decode
190 private static int decode(char c) { method in class:UnixUriUtils
/libcore/ojluni/src/main/java/sun/security/x509/
H A DX509Key.java94 * by using <code>decode</code>.
191 * and <code>decode</code>.
379 public void decode(InputStream in) method in class:X509Key
402 public void decode(byte[] encodedKey) throws InvalidKeyException { method in class:X509Key
403 decode(new ByteArrayInputStream(encodedKey));
420 decode(stream);
/libcore/support/src/test/java/org/apache/harmony/testframework/
H A DCharWrapperTester.java44 public abstract char[] decode(char[] delegateChars) throws Exception; method in class:CharWrapperTester
91 return decode(delegate.buffer.toString().toCharArray());
H A DWrapperTester.java45 public abstract byte[] decode(byte[] delegateBytes) throws Exception; method in class:WrapperTester
92 return WrapperTester.this.decode(delegate.bytesOut.toByteArray());
/libcore/luni/src/main/java/libcore/icu/
H A DNativeConverter.java23 public static native int decode(long converterHandle, byte[] input, int inEnd, method in class:NativeConverter
/libcore/luni/src/test/java/libcore/java/nio/charset/
H A DOldCharset_AbstractTest.java123 static void decode (byte[] input, char[] expectedOutput) throws CharacterCodingException { method in class:OldCharset_AbstractTest
126 CharBuffer outputCB = decoder.decode(inputBB);
132 decode(testBytes, testChars);
161 CharBuffer outputCB = decoder.decode(intermediateBB);
163 assertEqualCBs("decode(encode(A)) must be identical with A = " + code,
170 fail("failed to decode(encode(" + code + "))");
202 CharBuffer outputCB = decoder.decode(intermediateBB);
204 assertEqualCBs("decode(encode(A)) must be identical with A!",
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
H A DIdentity2Test.java60 public void decode(InputStream in) { method in class:Identity2Test.CertificateImpl

Completed in 607 milliseconds

12