Home
last modified time | relevance | path

Searched refs:ByteArrayInputStream (Results 1 – 25 of 282) sorted by relevance

12345678910>>...12

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DPrintStreamTest.java20 import java.io.ByteArrayInputStream;
246 ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray()); in test_print$C()
262 ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray()); in test_printC()
275 ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray()); in test_printD()
290 ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray()); in test_printF()
305 ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray()); in test_printI()
320 ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray()); in test_printJ()
334 ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray()); in test_printLjava_lang_Object()
347 bis = new ByteArrayInputStream(bos1.toByteArray()); in test_printLjava_lang_Object()
360 ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray()); in test_printLjava_lang_String()
[all …]
DSequenceInputStreamTest.java20 import java.io.ByteArrayInputStream;
58 InputStream is = new ByteArrayInputStream(s1.getBytes("UTF-8")); in test_Constructor_LInputStreamLInputStream_Null()
74 streams[0] = new ByteArrayInputStream(s1.getBytes("UTF-8")); in test_ConstructorLjava_util_Enumeration()
75 streams[1] = new ByteArrayInputStream(s2.getBytes("UTF-8")); in test_ConstructorLjava_util_Enumeration()
157 ByteArrayInputStream bis1 = new ByteArrayInputStream( in test_read$BII()
159 ByteArrayInputStream bis2 = new ByteArrayInputStream( in test_read$BII()
183 si = new SequenceInputStream(new ByteArrayInputStream(s1.getBytes("UTF-8")), in setUp()
184 new ByteArrayInputStream(s2.getBytes("UTF-8"))); in setUp()
DBufferedOutputStreamTest.java21 import java.io.ByteArrayInputStream;
32 java.io.ByteArrayInputStream bais;
134 bais = new ByteArrayInputStream(baos.toByteArray()); in test_write$BII()
137 bais = new ByteArrayInputStream(baos.toByteArray()); in test_write$BII()
140 bais = new ByteArrayInputStream(baos.toByteArray()); in test_write$BII()
652 bais = new java.io.ByteArrayInputStream(baos.toByteArray()); in test_writeI()
655 bais = new java.io.ByteArrayInputStream(baos.toByteArray()); in test_writeI()
684 ByteArrayInputStream byteArrayis = null; in test_write_Scenario1()
689 byteArrayis = new ByteArrayInputStream(byteArrayos.toByteArray()); in test_write_Scenario1()
692 byteArrayis = new ByteArrayInputStream(byteArrayos.toByteArray()); in test_write_Scenario1()
[all …]
DPushbackInputStreamTest.java20 import java.io.ByteArrayInputStream;
33 new ByteArrayInputStream(new byte[] { 0 }), 2); in test_reset()
44 new ByteArrayInputStream(new byte[] { 0 }), 2); in test_mark()
65 pis = new PushbackInputStream(new ByteArrayInputStream("Hello" in test_ConstructorLjava_io_InputStream()
81 pis = new PushbackInputStream(new ByteArrayInputStream("Hello" in test_ConstructorLjava_io_InputStreamI()
211 new ByteArrayInputStream(new byte[] { 0 }), 2); in test_unread$BII()
241 pis = new PushbackInputStream(new ByteArrayInputStream(fileString in setUp()
DInputStreamReaderTest.java22 import java.io.ByteArrayInputStream;
37 static class LimitedByteArrayInputStream extends ByteArrayInputStream {
108 in = new ByteArrayInputStream(source.getBytes("UTF-8")); in setUp()
117 fis = new ByteArrayInputStream(bos.toByteArray()); in setUp()
310 isr = new InputStreamReader(new ByteArrayInputStream(b), "UTF-16BE"); in test_getEncoding()
337 new ByteArrayInputStream(new byte[] { (byte) 0xe8, (byte) 0x9d, in test_read()
371 InputStreamReader isr = new InputStreamReader(new ByteArrayInputStream( in test_read_1()
376 new ByteArrayInputStream(new byte[] { -32, -96 }), Charset in test_read_1()
384 new ByteArrayInputStream(new byte[] { -32, -96 }), decoder); in test_read_1()
395 new ByteArrayInputStream(new byte[] { -32, -96 }), decoder2); in test_read_1()
[all …]
DEOFExceptionTest.java20 import java.io.ByteArrayInputStream;
32 new DataInputStream(new ByteArrayInputStream(new byte[1])) in test_Constructor()
45 new DataInputStream(new ByteArrayInputStream(new byte[1])) in test_ConstructorLjava_lang_String()
/libcore/luni/src/test/java/libcore/java/io/
DOldAndroidBufferedInputStreamTest.java20 import java.io.ByteArrayInputStream;
33 ByteArrayInputStream aa = new ByteArrayInputStream(str.getBytes()); in testBufferedInputStream()
34 ByteArrayInputStream ba = new ByteArrayInputStream(str.getBytes()); in testBufferedInputStream()
35 ByteArrayInputStream ca = new ByteArrayInputStream(str.getBytes()); in testBufferedInputStream()
36 ByteArrayInputStream da = new ByteArrayInputStream(str.getBytes()); in testBufferedInputStream()
37 ByteArrayInputStream ea = new ByteArrayInputStream(str.getBytes()); in testBufferedInputStream()
DOldAndroidByteArrayInputStreamTest.java19 import java.io.ByteArrayInputStream;
33 ByteArrayInputStream a = new ByteArrayInputStream(str.getBytes()); in testByteArrayInputStream()
34 ByteArrayInputStream b = new ByteArrayInputStream(str.getBytes()); in testByteArrayInputStream()
35 ByteArrayInputStream c = new ByteArrayInputStream(str.getBytes()); in testByteArrayInputStream()
36 ByteArrayInputStream d = new ByteArrayInputStream(str.getBytes()); in testByteArrayInputStream()
DOldAndroidDataInputStreamTest.java19 import java.io.ByteArrayInputStream;
32 ByteArrayInputStream aa = new ByteArrayInputStream(str.getBytes()); in testDataInputStream()
33 ByteArrayInputStream ba = new ByteArrayInputStream(str.getBytes()); in testDataInputStream()
34 ByteArrayInputStream ca = new ByteArrayInputStream(str.getBytes()); in testDataInputStream()
35 ByteArrayInputStream da = new ByteArrayInputStream(str.getBytes()); in testDataInputStream()
85 ByteArrayInputStream ga = new ByteArrayInputStream(e.toByteArray()); in testDataInputStream()
DOldAndroidInputStreamReaderTest.java19 import java.io.ByteArrayInputStream;
33 ByteArrayInputStream aa = new ByteArrayInputStream(str.getBytes("ISO8859_1")); in testAscii()
55 ByteArrayInputStream aa = in testUtf8()
56 new ByteArrayInputStream(str.getBytes()); in testUtf8()
96 ByteArrayInputStream bais = new ByteArrayInputStream(ba); in testStringy()
DOldAndroidPushbackInputStreamTest.java19 import java.io.ByteArrayInputStream;
30 ByteArrayInputStream aa = new ByteArrayInputStream(str.getBytes()); in testPushbackInputStream()
31 ByteArrayInputStream ba = new ByteArrayInputStream(str.getBytes()); in testPushbackInputStream()
32 ByteArrayInputStream ca = new ByteArrayInputStream(str.getBytes()); in testPushbackInputStream()
DConsoleTest.java24 import java.io.ByteArrayInputStream;
60 ByteArrayInputStream inStream = new ByteArrayInputStream(bytes); in testReadPassword()
79 ByteArrayInputStream inStream = new ByteArrayInputStream(bytes); in testReadPasswordWithPrompt()
102 ByteArrayInputStream inStream = new ByteArrayInputStream(bytes); in testCharset()
/libcore/luni/src/test/java/tests/security/cert/
DPKIXBuilderParametersTest.java27 import java.io.ByteArrayInputStream;
239 ByteArrayInputStream certArray = new ByteArrayInputStream(certificate in testPKIXBuilderParametersKeyStoreCertSelector04()
242 ByteArrayInputStream certArray2 = new ByteArrayInputStream(certificate2 in testPKIXBuilderParametersKeyStoreCertSelector04()
270 ByteArrayInputStream certArray = new ByteArrayInputStream(certificate in testGetMaxPathLength()
273 ByteArrayInputStream certArray2 = new ByteArrayInputStream(certificate2 in testGetMaxPathLength()
298 ByteArrayInputStream certArray = new ByteArrayInputStream(certificate in testSetMaxPathLength()
301 ByteArrayInputStream certArray2 = new ByteArrayInputStream(certificate2 in testSetMaxPathLength()
341 ByteArrayInputStream certArray = new ByteArrayInputStream(certificate in testToString()
344 ByteArrayInputStream certArray2 = new ByteArrayInputStream(certificate2 in testToString()
DCertificateFactorySpiTest.java30 import java.io.ByteArrayInputStream;
56 ByteArrayInputStream bais = new ByteArrayInputStream(new byte[0]); in testCertificateFactorySpi01()
118 ByteArrayInputStream bais = new ByteArrayInputStream(new byte[0]); in testCertificateFactorySpi02()
188 ByteArrayInputStream bais = new ByteArrayInputStream(new byte[0]); in testCertificateFactorySpi03()
255 ByteArrayInputStream bais = new ByteArrayInputStream(new byte[0]); in testEngineGenerateCertPathLjava_io_InputStream01()
273 ByteArrayInputStream bais = new ByteArrayInputStream(new byte[0]); in testEngineGenerateCertPathLjava_io_InputStream02()
294 ByteArrayInputStream bais = new ByteArrayInputStream(new byte[0]); in testEngineGenerateCertPathLjava_io_InputStream_Ljava_lang_String01()
320 ByteArrayInputStream bais = new ByteArrayInputStream(new byte[0]); in testEngineGenerateCertPathLjava_io_InputStream_Ljava_lang_String02()
381 ByteArrayInputStream bais = new ByteArrayInputStream(new byte[3]); in testAbstractMethods()
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/io/
DObjectInputStreamTest.java25 import java.io.ByteArrayInputStream;
160 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); in test_ClassDescriptor()
235 ois = new ObjectInputStream(new ByteArrayInputStream(bao.toByteArray())); in test_read$BII_Exception()
274 ois = new ObjectInputStream(new ByteArrayInputStream(bao.toByteArray())); in test_readFully$B()
280 ois = new ObjectInputStream(new ByteArrayInputStream(bao.toByteArray())); in test_readFully$B()
314 ois = new ObjectInputStream(new ByteArrayInputStream(bao.toByteArray())); in test_readFully$BII()
319 ois = new ObjectInputStream(new ByteArrayInputStream(bao.toByteArray())); in test_readFully$BII()
334 ois = new ObjectInputStream(new ByteArrayInputStream(bao.toByteArray())); in test_readFully$BII_Exception()
414 bois = new BasicObjectInputStream(new ByteArrayInputStream(buffer)); in test_readObjectOverride()
443 bois = new BasicObjectInputStream(new ByteArrayInputStream(buffer)); in test_readStreamHeader()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
DHostnameVerifierTest.java20 import java.io.ByteArrayInputStream;
50 in = new ByteArrayInputStream(X509_FOO); in testVerify()
58 in = new ByteArrayInputStream(X509_HANAKO); in testVerify()
65 in = new ByteArrayInputStream(X509_FOO_BAR); in testVerify()
74 in = new ByteArrayInputStream(X509_FOO_BAR_HANAKO); in testVerify()
88 in = new ByteArrayInputStream(X509_NO_CNS_FOO); in testVerify()
95 in = new ByteArrayInputStream(X509_THREE_CNS_FOO_BAR_HANAKO); in testVerify()
106 in = new ByteArrayInputStream(X509_WILD_FOO); in testVerify()
115 in = new ByteArrayInputStream(X509_WILD_CO_JP); in testVerify()
122 in = new ByteArrayInputStream(X509_WILD_FOO_BAR_HANAKO); in testVerify()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/jar/
DManifestTest.java19 import java.io.ByteArrayInputStream;
88 Manifest firstManifest = new Manifest(new ByteArrayInputStream( in testCopyingConstructor()
132 InputStream is = new ByteArrayInputStream(baos.toByteArray()); in testStreamConstructor()
136 Manifest manifest = new Manifest(new ByteArrayInputStream( in testStreamConstructor()
144 ByteArrayInputStream bis = new ByteArrayInputStream(manifestContent in testStreamConstructor()
160 new Manifest(new ByteArrayInputStream( in testStreamConstructor()
187 Manifest firstManifest = new Manifest(new ByteArrayInputStream( in testEquals()
189 Manifest secondManifest = new Manifest(new ByteArrayInputStream( in testEquals()
194 Manifest thirdManifest = new Manifest(new ByteArrayInputStream( in testEquals()
271 new Manifest(new ByteArrayInputStream(bytes)); // the last NUL is ok in testNul()
[all …]
/libcore/ojluni/src/main/java/sun/misc/
DCharacterEncoder.java29 import java.io.ByteArrayInputStream;
178 ByteArrayInputStream inStream = new ByteArrayInputStream(aBuffer); in encode()
188 ByteArrayInputStream inStream = new ByteArrayInputStream(aBuffer); in encode()
311 ByteArrayInputStream inStream = new ByteArrayInputStream(aBuffer); in encodeBuffer()
321 ByteArrayInputStream inStream = new ByteArrayInputStream(aBuffer); in encodeBuffer()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DPropertiesTest.java21 import java.io.ByteArrayInputStream;
213 prop.load(is = new ByteArrayInputStream(writeProperties())); in test_loadLjava_io_InputStream()
225 prop.load(new ByteArrayInputStream("=".getBytes())); in test_loadLjava_io_InputStream()
233 prop.load(new ByteArrayInputStream(" = ".getBytes())); in test_loadLjava_io_InputStream()
241 prop.load(new ByteArrayInputStream(" a= b".getBytes())); in test_loadLjava_io_InputStream()
249 prop.load(new ByteArrayInputStream(" a b".getBytes())); in test_loadLjava_io_InputStream()
257 prop.load(new ByteArrayInputStream("#\u008d\u00d2\na=\u008d\u00d3" in test_loadLjava_io_InputStream()
267 prop.load(new ByteArrayInputStream( in test_loadLjava_io_InputStream()
317 is = new ByteArrayInputStream(writeProperties()); in test_loadLjava_io_Reader()
329 prop.load(new ByteArrayInputStream("=".getBytes())); in test_loadLjava_io_Reader()
[all …]
/libcore/ojluni/src/test/java/util/Properties/
DPropertiesSerialization.java26 import java.io.ByteArrayInputStream;
85 ByteArrayInputStream bais = new in main()
86 ByteArrayInputStream(Base64.getDecoder().decode(TEST_SER_BASE64)); in main()
106 ByteArrayInputStream bais = new ByteArrayInputStream(byteArray); in main()
116 ByteArrayInputStream bais2 = in main()
117 new ByteArrayInputStream(Base64.getDecoder().decode(base64)); in main()
DCloseXMLStream.java32 import java.io.ByteArrayInputStream;
42 ByteArrayInputStream in = new ByteArrayInputStream(out.toByteArray()) { in main()
/libcore/ojluni/src/test/java/io/ByteArrayInputStream/
DReadAllReadNTransferTo.java23 package test.java.io.ByteArrayInputStream;
25 import java.io.ByteArrayInputStream;
54 ByteArrayInputStream bais = in testRead()
55 new ByteArrayInputStream(buf, position, size); in testRead()
80 bais = new ByteArrayInputStream(buf); in testRead()
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DDigestInputStreamTest.java25 import java.io.ByteArrayInputStream;
84 InputStream is = new ByteArrayInputStream(myMessage); in testDigestInputStream01()
117 InputStream is = new ByteArrayInputStream(myMessage); in testRead01()
150 InputStream is = new ByteArrayInputStream(myMessage); in testRead02()
185 InputStream is = new ByteArrayInputStream(myMessage); in testRead03()
246 InputStream is = new ByteArrayInputStream(myMessage); in testRead05()
271 InputStream is = new ByteArrayInputStream(myMessage); in testRead06()
296 InputStream is = new ByteArrayInputStream(myMessage); in testReadbyteArrayintint01()
333 InputStream is = new ByteArrayInputStream(myMessage); in testReadbyteArrayintint02()
373 InputStream is = new ByteArrayInputStream(myMessage); in testReadbyteArrayintint03()
[all …]
/libcore/ojluni/src/test/java/util/Collections/
DSer.java33 import java.io.ByteArrayInputStream;
50 new ByteArrayInputStream(bos.toByteArray())); in main()
64 new ByteArrayInputStream(bos.toByteArray())); in main()
79 new ByteArrayInputStream(bos.toByteArray())); in main()
94 new ByteArrayInputStream(bos.toByteArray())); in main()
/libcore/ojluni/src/test/java/security/cert/
DCertPathEncodingTest.java27 import java.io.ByteArrayInputStream;
239 certs.add(certFac.generateCertificate(new ByteArrayInputStream(cert1.getBytes()))); in testCertPathEncoding()
240 certs.add(certFac.generateCertificate(new ByteArrayInputStream(cert2.getBytes()))); in testCertPathEncoding()
252 CertPath decodedCP = certFac.generateCertPath(new ByteArrayInputStream(encoded), "PKCS7"); in testCertPathEncoding()

12345678910>>...12