Home
last modified time | relevance | path

Searched refs:getInputStream (Results 1 – 25 of 99) sorted by relevance

1234

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/jar/
DJarInputStreamTest.java57 InputStream is = new URL(jarName).openConnection().getInputStream(); in test_ConstructorLjava_io_InputStream()
97 InputStream is = new URL(jarName).openConnection().getInputStream(); in test_getNextJarEntry_Ex()
131 InputStream is = new URL(jarName2).openConnection().getInputStream(); in test_getManifest()
136 is = new URL(jarName).openConnection().getInputStream(); in test_getManifest()
146 InputStream is = new URL(jarName).openConnection().getInputStream(); in test_getNextJarEntry()
160 .getInputStream(); in test_JarInputStream_Integrate_Jar_getNextEntry()
176 .getInputStream(); in test_JarInputStream_Modified_Class_getNextEntry()
203 .getInputStream(); in test_JarInputStream_Modified_Manifest_MainAttributes_getNextEntry()
224 .getInputStream(); in test_JarInputStream_Modified_Manifest_EntryAttributes_getNextEntry()
251 .getInputStream(); in test_JarInputStream_Modified_SF_EntryAttributes_getNextEntry()
[all …]
DJarFileTest.java488 InputStream in = jar.getInputStream(entry); in test_getInputStreamLjava_util_jar_JarEntry_subtest0()
496 InputStream in = jar.getInputStream(entry); in test_getInputStreamLjava_util_jar_JarEntry_subtest0()
508 InputStream in = jar.getInputStream(entry); in test_getInputStreamLjava_util_jar_JarEntry_subtest0()
527 InputStream in = jar.getInputStream(entry); in test_getInputStreamLjava_util_jar_JarEntry_subtest0()
588 InputStream is = jarFile.getInputStream(entry); in assertFirstSignedEntryCertificateLength()
616 InputStream is = jarFile.getInputStream(entry); in getSignedJarCerts()
677 jarFile.getInputStream(zipEntry); in test_Jar_created_before_java_5()
690 jarFile.getInputStream(zipEntry).skip(Long.MAX_VALUE); in test_JarFile_Integrate_Jar()
704 jarFile.getInputStream(zipEntry).skip(Long.MAX_VALUE); in testJarVerificationModifiedEntry()
712 jarFile.getInputStream(zipEntry).read(new byte[5000], 0, 5000); in testJarVerificationModifiedEntry()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/
DZipFileTest.java131 InputStream is1 = zf.getInputStream(zf.getEntry("File1.txt")); in test_close()
132 InputStream is2 = zf.getInputStream(zf.getEntry("File2.txt")); in test_close()
203 in = zfile.getInputStream(zentry); in test_getEntryLjava_lang_String()
211 in = zfile.getInputStream(zentry); in test_getEntryLjava_lang_String()
227 in = zfile.getInputStream(zentry); in test_getEntryLjava_lang_String_AndroidOnly()
263 is = zfile.getInputStream(zentry); in test_getInputStreamLjava_util_zip_ZipEntry()
282 is = zfile.getInputStream(zentry); in test_getInputStreamLjava_util_zip_ZipEntry()
320 InputStream is = zfile.getInputStream(zentry); in test_reset()
339 is = zfile.getInputStream(zentry2); in test_reset()
349 is = zfile.getInputStream(zentry2); in test_reset()
[all …]
DGZIPInputStreamTest.java70 .openConnection().getInputStream()); in test_ConstructorLjava_io_InputStream()
98 .openConnection().getInputStream(), 200); in test_ConstructorLjava_io_InputStreamI()
107 .openConnection().getInputStream(), 0); in test_ConstructorLjava_io_InputStreamI()
117 .openConnection().getInputStream(), 200); in test_ConstructorLjava_io_InputStreamI()
140 .openConnection().getInputStream()); in test_read$BII()
256 .openConnection().getInputStream()); in test_close()
/libcore/ojluni/src/main/java/sun/net/www/
DURLConnection.java102 getInputStream(); in getHeaderField()
116 getInputStream(); in getHeaderFieldKey()
131 getInputStream(); in getHeaderField()
148 ct = guessContentTypeFromStream(getInputStream()); in getContentType()
198 getInputStream(); in getContentLength()
/libcore/luni/src/test/java/libcore/java/util/zip/
DOldZipFileTest.java58 in = zfile.getInputStream(zentry); in test_getEntryLjava_lang_String_AndroidOnly()
84 InputStream is1 = zf.getInputStream(zf.getEntry("File1.txt")); in test_close()
85 InputStream is2 = zf.getInputStream(zf.getEntry("File2.txt")); in test_close()
132 is = zfile.getInputStream(zentry); in test_getInputStreamLjava_util_zip_ZipEntry()
DOldAndroidZipFileTest.java140 stream1 = zipFile.getInputStream(entry1); in read2()
141 stream2 = zipFile.getInputStream(entry2); in read2()
178 stream1 = zipFile.getInputStream(zipFile.getEntry("file-0")); in read2()
DOldAndroidZipStressTest.java46 InputStream is = jarFile.getInputStream(je); in checkJarCertificates()
86 InputStream stream = zip.getInputStream(entry); in testZipStressManifest()
105 InputStream stream = zip.getInputStream(entries.nextElement()); in testZipStressAllFiles()
/libcore/luni/src/test/java/libcore/java/net/
DFtpURLConnectionTest.java93 assertContents(fileContents, connection.getInputStream()); in testInputUrl()
105 noPasswordConnection.getInputStream(); in testInputUrl_missingPassword()
116 connection.getInputStream(); in checkInputUrl_invalidUserOrPassword()
143 assertContents(fileContents, connection.getInputStream()); in testConnectOverProxy_noProxy()
183 assertContents(fileContents, connection.getInputStream()); in testConnectOverProxy_explicit_http_uses_direct_connection()
206 InputStream inputStream = connection.getInputStream(); in testConnectOverProxy_implicit_http_fails()
227 assertContents(fileContents, connection.getInputStream()); in testInputUrlWithSpaces()
234 assertContents(data, url.openConnection().getInputStream()); in testBinaryFileContents()
245 assertContents(fileContents, url.openConnection().getInputStream()); in testInputUrlWithSpacesViaProxySelector()
DURLConnectionTest.java418 assertEquals("ABC", readAscii(connection1.getInputStream())); in connectionsArePooledWithoutExplicitDisconnect()
421 assertEquals("DEF", readAscii(connection2.getInputStream())); in connectionsArePooledWithoutExplicitDisconnect()
543 conn.getInputStream(); in getResponseCodeNoResponseBody()
607 readAscii(connection.getInputStream()); in connectViaHttpsReusingConnectionsDifferentFactories()
630 connection.getInputStream(); in connectViaHttpsToUntrustedServer()
1197 InputStream in = connection.getInputStream(); in disconnectedConnection()
1288 inputStream = new AuditInputStream(connection.getInputStream(), auditStream); in checkDisconnectFromBackgroundThread_blockedRead()
1311 checkDisconnectDuringConnect(HttpURLConnection::getInputStream); in disconnectDuringConnect_getInputStream()
1441 InputStream in = server.getUrl("/").openConnection().getInputStream(); in testMarkAndReset()
1487 readAscii(connection.getInputStream()); in nonHexChunkSize()
[all …]
DOldUnixSocketTest.java53 InputStream in = worker.getInputStream(); in test_getInputStream()
59 InputStream clientIn = pingClient.getInputStream(); in test_getInputStream()
DOldJarURLConnectionTest.java82 InputStream is = jf.getInputStream(je); in test_getCertificates()
233 connection.getInputStream(); in test_setUseCaches()
234 InputStream in = connection.getInputStream(); in test_setUseCaches()
245 connection.getInputStream(); in test_setUseCaches()
304 InputStream is = conn.getInputStream(); in test_getInputStream_DeleteJarFileUsingURLConnection()
/libcore/luni/src/test/java/libcore/java/util/jar/
DOldJarFileTest.java125 InputStream is = jf.getInputStream(jf.getEntry(entryName)); in test_getInputStreamLjava_util_jar_JarEntry()
138 InputStream in = jf.getInputStream(new JarEntry("invalid")); in test_getInputStreamLjava_util_jar_JarEntry()
146 jf.getInputStream(jre); in test_getInputStreamLjava_util_jar_JarEntry()
159 jf.getInputStream(jre); in test_getInputStreamLjava_util_jar_JarEntry()
/libcore/ojluni/src/main/java/java/util/jar/
DJarFile.java207 man = new Manifest(super.getInputStream(manEntry)); in getManifestFromReference()
434 try (InputStream is = super.getInputStream(ze)) { in getBytes()
452 public synchronized InputStream getInputStream(ZipEntry ze) in getInputStream() method in JarFile
457 return super.getInputStream(ze); in getInputStream()
466 return super.getInputStream(ze); in getInputStream()
474 super.getInputStream(ze), in getInputStream()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DClassLoaderTest.java143 InputStream is = uncachedConnection.getInputStream(); in testUncachedJarStreamBehavior()
161 InputStream is1 = cachedConnection1.getInputStream(); in testCachedJarStreamBehavior()
167 InputStream is2 = cachedConnection2.getInputStream(); in testCachedJarStreamBehavior()
243 jarURLConnection.getInputStream(); in isJarUrlConnectClosed()
DProcessTest.java47 for (String line : readAndCloseStream(ps.getInputStream()).split("\n")) { in test_55017()
73 String received = readAndCloseStream(p.getInputStream()); in test_getOutputStream()
89 String received = readAndCloseStream(p.getInputStream()); in test_getErrorStream()
/libcore/benchmarks/src/benchmarks/
DBufferedZipFileBenchmark.java60 InputStream in = zipFile.getInputStream(entry); in timeUnbufferedRead()
73 InputStream in = new BufferedInputStream(zipFile.getInputStream(entry)); in timeBufferedRead()
/libcore/ojluni/src/main/java/sun/net/www/protocol/jar/
DJarURLConnection.java155 public InputStream getInputStream() throws IOException { in getInputStream() method in JarURLConnection
168 result = new JarURLInputStream (jarFile.getInputStream(jarEntry)); in getInputStream()
215 InputStream in = jarFile.getInputStream(jarEntry); in getContentType()
/libcore/ojluni/src/main/java/sun/misc/
DResource.java65 public abstract InputStream getInputStream() throws IOException; in getInputStream() method in Resource
77 cis = getInputStream(); in cachedInputStream()
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/net/
DURLConnectionTest.java433 fileURLCon.getInputStream().close();
446 gifURLCon.getInputStream().close();
447 fileURLCon.getInputStream().close();
468 fileURLCon.getInputStream().close();
536 fileURLCon.getInputStream().close();
540 uc2.getInputStream();
775 uc2.getInputStream();
1176 try (InputStream inputStream = uc.getInputStream()) {
1211 fileURLCon.getInputStream()), testString.getBytes().length);
1220 assertNotNull(uc.getInputStream());
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DJarURLConnectionTest.java165 InputStream in = connection.getInputStream(); in test_setUseCaches()
178 connection.getInputStream(); in test_setUseCaches()
222 InputStream is = conn.getInputStream(); in test_getInputStream_DeleteJarFileUsingURLConnection()
253 InputStream is = juc.getInputStream(); in test_getCertificates()
/libcore/luni/src/main/java/libcore/io/
DClassPathURLStreamHandler.java154 public InputStream getInputStream() throws IOException { in getInputStream() method in ClassPathURLStreamHandler.ClassPathURLConnection
162 return jarInput = new FilterInputStream(jarFile.getInputStream(jarEntry)) { in getInputStream()
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/internal/net/www/protocol/http/
DHttpURLConnectionTest.java94 int num = socket.getInputStream().read(buff); in run()
99 num = socket.getInputStream().read(buff); in run()
104 num = socket.getInputStream().read(buff); in run()
/libcore/ojluni/src/main/java/java/lang/
DProcess.java121 public abstract InputStream getInputStream(); in getInputStream() method in Process
/libcore/ojluni/src/main/java/sun/net/ftp/impl/
DFtpClient.java937 in = new BufferedInputStream(server.getInputStream()); in tryConnect()
1247 InputStream remote = createInputStream(s.getInputStream()); in getFile()
1259 InputStream remote = createInputStream(s.getInputStream()); in getFile()
1296 return createInputStream(s.getInputStream()); in getFileStream()
1304 return createInputStream(s.getInputStream()); in getFileStream()
1656 in = new BufferedInputStream(server.getInputStream()); in reInit()
1705 return createInputStream(s.getInputStream()); in list()
1729 return createInputStream(s.getInputStream()); in nameList()
1905 sin = new BufferedReader(new InputStreamReader(s.getInputStream())); in listFiles()
1910 sin = new BufferedReader(new InputStreamReader(s.getInputStream())); in listFiles()
[all …]

1234