Searched refs:inputStream (Results 1 - 23 of 23) sorted by relevance

/libcore/luni/src/main/java/javax/xml/transform/stream/
H A DStreamSource.java49 * {@link #setInputStream(java.io.InputStream inputStream)} or
69 * @param inputStream A valid InputStream reference to an XML stream.
71 public StreamSource(InputStream inputStream) { argument
72 setInputStream(inputStream);
85 * @param inputStream A valid InputStream reference to an XML stream.
88 public StreamSource(InputStream inputStream, String systemId) { argument
89 setInputStream(inputStream);
151 * @param inputStream A valid InputStream reference to an XML stream.
153 public void setInputStream(InputStream inputStream) { argument
154 this.inputStream
266 private InputStream inputStream; field in class:StreamSource
[all...]
/libcore/benchmarks/src/benchmarks/
H A DXmlParseBenchmark.java42 ByteArrayInputStream inputStream; field in class:XmlParseBenchmark
59 inputStream = new ByteArrayInputStream(xmlBytes);
60 inputStream.mark(xmlBytes.length);
88 inputStream.reset();
90 saxParser.parse(inputStream, elementCounterSaxHandler);
107 inputStream.reset();
108 Document document = documentBuilder.parse(inputStream);
137 inputStream.reset();
139 xmlPullParser.setInput(inputStream, "UTF-8");
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
H A DParseExceptionTest.java53 try (InputStream inputStream = getClass().getResourceAsStream(
55 ObjectInputStream ois = new ObjectInputStream(inputStream)) {
/libcore/luni/src/test/java/libcore/java/lang/
H A DProcessBuilderTest.java489 * Asserts that inputStream is a <a href="ProcessBuilder#redirect-input">null input stream</a>.
491 private static void assertNullInputStream(InputStream inputStream) throws IOException { argument
492 assertEquals(-1, inputStream.read());
493 assertEquals(0, inputStream.available());
494 inputStream.close(); // should do nothing
536 static String readAsString(InputStream inputStream) throws IOException { argument
540 while ((numRead = inputStream.read(data)) >= 0) {
547 * Reads the entire specified {@code inputStream} asynchronously.
549 static FutureTask<String> asyncRead(final InputStream inputStream) { argument
550 final FutureTask<String> result = new FutureTask<>(() -> readAsString(inputStream));
[all...]
/libcore/ojluni/src/main/java/java/sql/
H A DPreparedStatement.java857 * @param inputStream An object that contains the data to set the parameter
870 void setBlob(int parameterIndex, InputStream inputStream, long length) argument
1185 * @param inputStream An object that contains the data to set the parameter
1196 void setBlob(int parameterIndex, InputStream inputStream) argument
H A DResultSet.java3547 * @param inputStream An object that contains the data to set the parameter
3558 void updateBlob(int columnIndex, InputStream inputStream, long length) throws SQLException; argument
3571 * @param inputStream An object that contains the data to set the parameter
3582 void updateBlob(String columnLabel, InputStream inputStream, long length) throws SQLException; argument
3933 * @param inputStream An object that contains the data to set the parameter
3942 void updateBlob(int columnIndex, InputStream inputStream) throws SQLException; argument
3958 * @param inputStream An object that contains the data to set the parameter
3967 void updateBlob(String columnLabel, InputStream inputStream) throws SQLException; argument
H A DCallableStatement.java1910 * @param inputStream An object that contains the data to set the parameter
1923 void setBlob(String parameterName, InputStream inputStream, long length) argument
2406 * @param inputStream An object that contains the data to set the parameter
2415 void setBlob(String parameterName, InputStream inputStream) argument
/libcore/ojluni/src/main/java/javax/sql/
H A DRowSet.java1433 * @param inputStream An object that contains the data to set the parameter
1446 void setBlob(int parameterIndex, InputStream inputStream, long length) argument
1463 * @param inputStream An object that contains the data to set the parameter
1473 void setBlob(int parameterIndex, InputStream inputStream) argument
1489 * @param inputStream An object that contains the data to set the parameter
1502 void setBlob(String parameterName, InputStream inputStream, long length) argument
1533 * @param inputStream An object that contains the data to set the parameter
1541 void setBlob(String parameterName, InputStream inputStream) argument
/libcore/xml/src/main/java/org/xmlpull/v1/
H A DXmlPullParser.java484 * @param inputStream contains a raw byte input stream of possibly
487 * @param inputEncoding if not null it MUST be used as encoding for inputStream
489 void setInput(InputStream inputStream, String inputEncoding) argument
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
H A DSSLServerSocketTest.java394 InputStream inputStream = new ByteArrayInputStream(bytes);
397 keyStore.load(inputStream, PASSWORD.toCharArray());
398 inputStream.close();
H A DHandshakeCompletedEventTest.java539 InputStream inputStream = new ByteArrayInputStream(bytes);
542 keyStore.load(inputStream, PASSWORD.toCharArray());
543 inputStream.close();
H A DSSLSocketTest.java591 InputStream inputStream = new ByteArrayInputStream(bytes);
594 keyStore.load(inputStream, PASSWORD.toCharArray());
595 inputStream.close();
H A DSSLSessionTest.java631 InputStream inputStream = new ByteArrayInputStream(bytes);
634 keyStore.load(inputStream, PASSWORD.toCharArray());
635 inputStream.close();
/libcore/luni/src/test/java/libcore/java/net/
H A DFtpURLConnectionTest.java206 InputStream inputStream = connection.getInputStream();
213 assertContents(fileContents, inputStream);
292 private static void assertContents(byte[] expectedContents, InputStream inputStream) argument
295 byte[] contentBytes = IoUtil.readBytes(inputStream);
302 inputStream.close();
/libcore/ojluni/src/main/java/sun/security/pkcs/
H A DSignerInfo.java329 SignerInfo verify(PKCS7 block, InputStream inputStream) argument
337 if (inputStream == null) {
338 inputStream = new ByteArrayInputStream(content.getContentBytes());
353 dataSigned = inputStream;
384 while ((read = inputStream.read(buffer)) != -1) {
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/
H A DMappedByteBufferTest.java135 FileInputStream inputStream = new FileInputStream(tmpFile);
136 FileChannel fileChannelR = inputStream.getChannel();
/libcore/luni/src/main/java/javax/xml/datatype/
H A DFactoryFinder.java64 try (FileInputStream inputStream = new FileInputStream(f)) {
65 cacheProps.load(inputStream);
/libcore/luni/src/main/java/javax/xml/validation/
H A DSchemaFactoryFinder.java65 try (FileInputStream inputStream = new FileInputStream(f)) {
66 cacheProps.load(inputStream);
/libcore/luni/src/main/java/javax/xml/xpath/
H A DXPathFactoryFinder.java72 try (FileInputStream inputStream = new FileInputStream(f)) {
73 cacheProps.load(inputStream);
/libcore/luni/src/test/java/libcore/java/nio/channels/
H A DFileIOInterruptTest.java457 private final FileInputStream inputStream; field in class:FileIOInterruptTest.StreamReader
462 StreamReader(FileInputStream inputStream) { argument
463 this.inputStream = inputStream;
471 int bytesRead = inputStream.read(buffer);
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
H A DPropertiesTest.java1073 InputStream inputStream = new ByteArrayInputStream(
1076 props.load(inputStream);
1080 inputStream.close();
1082 inputStream = new ByteArrayInputStream(
1085 props.load(new InputStreamReader(inputStream, "UTF-8"));
1089 inputStream.close();
/libcore/luni/src/test/java/libcore/xml/
H A DXmlPullParserFactoryTest.java246 public void setInput(InputStream inputStream, String inputEncoding) argument
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/net/
H A DURLConnectionTest.java1178 try (InputStream inputStream = uc.getInputStream()) {
1179 inputStream.read(ba, 0, 600);

Completed in 1571 milliseconds