Home
last modified time | relevance | path

Searched refs:inputStream (Results 1 – 25 of 26) sorted by relevance

12

/libcore/luni/src/main/java/javax/xml/transform/stream/
DStreamSource.java71 public StreamSource(InputStream inputStream) { in StreamSource() argument
72 setInputStream(inputStream); in StreamSource()
88 public StreamSource(InputStream inputStream, String systemId) { in StreamSource() argument
89 setInputStream(inputStream); in StreamSource()
153 public void setInputStream(InputStream inputStream) { in setInputStream() argument
154 this.inputStream = inputStream; in setInputStream()
164 return inputStream; in getInputStream()
266 private InputStream inputStream; field in StreamSource
/libcore/benchmarks/src/benchmarks/
DXmlParseBenchmark.java42 ByteArrayInputStream inputStream; field in XmlParseBenchmark
59 inputStream = new ByteArrayInputStream(xmlBytes); in setUp()
60 inputStream.mark(xmlBytes.length); in setUp()
89 inputStream.reset(); in timeSax()
91 saxParser.parse(inputStream, elementCounterSaxHandler); in timeSax()
108 inputStream.reset(); in timeDom()
109 Document document = documentBuilder.parse(inputStream); in timeDom()
138 inputStream.reset(); in testXmlPull()
140 xmlPullParser.setInput(inputStream, "UTF-8"); in testXmlPull()
/libcore/luni/src/main/java/libcore/internal/
DJava9LanguageFeatures.java74 InputStream inputStream = new ByteArrayInputStream(bytes); in copy() local
75 try (inputStream) { // Language feature: try on effectively-final variable in copy() argument
77 while ((value = inputStream.read()) != -1) { in copy()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DParseExceptionTest.java53 try (InputStream inputStream = getClass().getResourceAsStream( in test_serialize() argument
55 ObjectInputStream ois = new ObjectInputStream(inputStream)) { in test_serialize()
/libcore/luni/src/test/java/libcore/java/lang/
DProcessBuilderTest.java491 private static void assertNullInputStream(InputStream inputStream) throws IOException { in assertNullInputStream() argument
492 assertEquals(-1, inputStream.read()); in assertNullInputStream()
493 assertEquals(0, inputStream.available()); in assertNullInputStream()
494 inputStream.close(); // should do nothing in assertNullInputStream()
536 static String readAsString(InputStream inputStream) throws IOException { in readAsString() argument
540 while ((numRead = inputStream.read(data)) >= 0) { in readAsString()
549 static FutureTask<String> asyncRead(final InputStream inputStream) { in asyncRead() argument
550 final FutureTask<String> result = new FutureTask<>(() -> readAsString(inputStream)); in asyncRead()
551 new Thread("read asynchronously from " + inputStream) { in asyncRead()
/libcore/luni/src/test/java/libcore/java/net/
DFtpURLConnectionTest.java206 InputStream inputStream = connection.getInputStream(); in testConnectOverProxy_implicit_http_fails() local
213 assertContents(fileContents, inputStream); in testConnectOverProxy_implicit_http_fails()
292 private static void assertContents(byte[] expectedContents, InputStream inputStream) in assertContents() argument
295 byte[] contentBytes = IoUtil.readBytes(inputStream); in assertContents()
302 inputStream.close(); in assertContents()
/libcore/ojluni/src/main/java/javax/sql/
DRowSet.java1446 void setBlob(int parameterIndex, InputStream inputStream, long length) in setBlob() argument
1473 void setBlob(int parameterIndex, InputStream inputStream) in setBlob() argument
1502 void setBlob(String parameterName, InputStream inputStream, long length) in setBlob() argument
1541 void setBlob(String parameterName, InputStream inputStream) in setBlob() argument
/libcore/ojluni/src/main/java/sun/security/pkcs/
DSignerInfo.java332 SignerInfo verify(PKCS7 block, InputStream inputStream) in verify() argument
340 if (inputStream == null) { in verify()
341 inputStream = new ByteArrayInputStream(content.getContentBytes()); in verify()
356 dataSigned = inputStream; in verify()
387 while ((read = inputStream.read(buffer)) != -1) { in verify()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
DSSLServerSocketTest.java398 InputStream inputStream = new ByteArrayInputStream(bytes); in getKeyManagers() local
401 keyStore.load(inputStream, PASSWORD.toCharArray()); in getKeyManagers()
402 inputStream.close(); in getKeyManagers()
DHandshakeCompletedEventTest.java536 InputStream inputStream = new ByteArrayInputStream(bytes); in getKeyManagers() local
539 keyStore.load(inputStream, PASSWORD.toCharArray()); in getKeyManagers()
540 inputStream.close(); in getKeyManagers()
DSSLSocketTest.java594 InputStream inputStream = new ByteArrayInputStream(bytes); in getKeyManagers() local
597 keyStore.load(inputStream, PASSWORD.toCharArray()); in getKeyManagers()
598 inputStream.close(); in getKeyManagers()
DSSLSessionTest.java610 InputStream inputStream = new ByteArrayInputStream(bytes); in getKeyStore() local
613 keyStore.load(inputStream, PASSWORD.toCharArray()); in getKeyStore()
614 inputStream.close(); in getKeyStore()
/libcore/luni/src/test/java/libcore/java/nio/channels/
DFileIOInterruptTest.java457 private final FileInputStream inputStream; field in FileIOInterruptTest.StreamReader
462 StreamReader(FileInputStream inputStream) { in StreamReader() argument
463 this.inputStream = inputStream; in StreamReader()
471 int bytesRead = inputStream.read(buffer); in run()
/libcore/ojluni/src/main/java/java/sql/
DPreparedStatement.java872 void setBlob(int parameterIndex, InputStream inputStream, long length) in setBlob() argument
1198 void setBlob(int parameterIndex, InputStream inputStream) in setBlob() argument
DResultSet.java3564 void updateBlob(int columnIndex, InputStream inputStream, long length) throws SQLException; in updateBlob() argument
3588 void updateBlob(String columnLabel, InputStream inputStream, long length) throws SQLException; in updateBlob() argument
3948 void updateBlob(int columnIndex, InputStream inputStream) throws SQLException; in updateBlob() argument
3973 void updateBlob(String columnLabel, InputStream inputStream) throws SQLException; in updateBlob() argument
DCallableStatement.java1924 void setBlob(String parameterName, InputStream inputStream, long length) in setBlob() argument
2416 void setBlob(String parameterName, InputStream inputStream) in setBlob() argument
/libcore/luni/src/main/java/javax/xml/datatype/
DFactoryFinder.java64 try (FileInputStream inputStream = new FileInputStream(f)) { in try() argument
65 cacheProps.load(inputStream); in try()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/
DMappedByteBufferTest.java135 FileInputStream inputStream = new FileInputStream(tmpFile); in test_force() local
136 FileChannel fileChannelR = inputStream.getChannel(); in test_force()
/libcore/luni/src/main/java/javax/xml/xpath/
DXPathFactoryFinder.java72 try (FileInputStream inputStream = new FileInputStream(f)) { in try() argument
73 cacheProps.load(inputStream); in try()
/libcore/luni/src/main/java/javax/xml/validation/
DSchemaFactoryFinder.java65 try (FileInputStream inputStream = new FileInputStream(f)) { in try() argument
66 cacheProps.load(inputStream); in try()
/libcore/xml/src/main/java/org/xmlpull/v1/
DXmlPullParser.java489 void setInput(InputStream inputStream, String inputEncoding) in setInput() argument
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DPropertiesTest.java1073 InputStream inputStream = new ByteArrayInputStream( in testLoadReader() local
1076 props.load(inputStream); in testLoadReader()
1080 inputStream.close(); in testLoadReader()
1082 inputStream = new ByteArrayInputStream( in testLoadReader()
1085 props.load(new InputStreamReader(inputStream, "UTF-8")); in testLoadReader()
1089 inputStream.close(); in testLoadReader()
/libcore/ojluni/annotations/hiddenapi/sun/security/pkcs/
DSignerInfo.java95 sun.security.pkcs.PKCS7 block, java.io.InputStream inputStream) in verify() argument
/libcore/luni/src/test/java/libcore/xml/
DXmlPullParserFactoryTest.java246 public void setInput(InputStream inputStream, String inputEncoding) in setInput() argument
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/net/
DURLConnectionTest.java1176 try (InputStream inputStream = uc.getInputStream()) {
1177 inputStream.read(ba, 0, 600);

12