Home
last modified time | relevance | path

Searched refs:outputStream (Results 1 – 7 of 7) sorted by relevance

/libcore/luni/src/main/java/javax/xml/transform/stream/
DStreamResult.java56 public StreamResult(OutputStream outputStream) { in StreamResult() argument
57 setOutputStream(outputStream); in StreamResult()
100 public void setOutputStream(OutputStream outputStream) { in setOutputStream() argument
101 this.outputStream = outputStream; in setOutputStream()
111 return outputStream; in getOutputStream()
188 private OutputStream outputStream; field in StreamResult
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DFilterOutputStreamTest.java67 OutputStream outputStream = Mockito.mock(OutputStream.class); in test_doubleClose() local
69 Mockito.doThrow(testException).when(outputStream).flush(); in test_doubleClose()
70 FilterOutputStream filterOutputStream = new FilterOutputStream(outputStream); in test_doubleClose()
78 Mockito.verify(outputStream, Mockito.times(1)).flush(); in test_doubleClose()
79 Mockito.verify(outputStream, Mockito.times(1)).close(); in test_doubleClose()
82 Mockito.verify(outputStream, Mockito.times(1)).flush(); in test_doubleClose()
83 Mockito.verify(outputStream, Mockito.times(1)).close(); in test_doubleClose()
/libcore/luni/src/test/java/libcore/java/lang/
DProcessBuilderTest.java479 try (OutputStream outputStream = process.getOutputStream()) { in checkProcessExecution() argument
480 outputStream.write(processInput.getBytes(Charset.defaultCharset())); in checkProcessExecution()
501 private static void assertNullOutputStream(OutputStream outputStream) throws IOException { in assertNullOutputStream() argument
503 outputStream.write(42); in assertNullOutputStream()
504 fail("NullOutputStream.write(int) must throw IOException: " + outputStream); in assertNullOutputStream()
508 outputStream.close(); // should do nothing in assertNullOutputStream()
537 ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); in readAsString() local
541 outputStream.write(data, 0, numRead); in readAsString()
543 return new String(outputStream.toByteArray(), Charset.defaultCharset()); in readAsString()
/libcore/luni/src/test/java/tests/security/cert/
DX509CertSelectorTest.java1890 DerOutputStream outputStream = new DerOutputStream(); in getExtensionValue() local
1891outputStream.putOctetString(new PrivateKeyUsageExtension(notBefore, notAfter).getExtensionValue()); in getExtensionValue()
1892 return outputStream.toByteArray(); in getExtensionValue()
1902 DerOutputStream outputStream = new DerOutputStream(); in getExtensionValue() local
1903outputStream.putOctetString(new SubjectAlternativeNameExtension(sans).getExtensionValue()); in getExtensionValue()
1904 return outputStream.toByteArray(); in getExtensionValue()
1917 DerOutputStream outputStream = new DerOutputStream(); in getExtensionValue() local
1918outputStream.putOctetString(new CertificatePoliciesExtension(policyInformations).getExtensionValue… in getExtensionValue()
1919 return outputStream.toByteArray(); in getExtensionValue()
2118 try (DerOutputStream outputStream = new DerOutputStream()){ in test_addSubjectAlternativeNameLintLbyte_array2() argument
[all …]
/libcore/luni/src/test/java/libcore/java/nio/channels/
DFileIOInterruptTest.java491 private final FileOutputStream outputStream; field in FileIOInterruptTest.StreamWriter
496 StreamWriter(FileOutputStream outputStream) { in StreamWriter() argument
497 this.outputStream = outputStream; in StreamWriter()
507 outputStream.write(buffer); in run()
/libcore/ojluni/src/main/java/sun/util/logging/
DPlatformLogger.java435 private static PrintStream outputStream() { in outputStream() method in PlatformLogger.DefaultLoggerProxy
466 outputStream().print(format(level, msg, null)); in doLog()
472 outputStream().print(format(level, msg, thrown)); in doLog()
479 outputStream().print(format(level, newMsg, null)); in doLog()
/libcore/luni/src/test/java/libcore/java/net/
DURLConnectionTest.java1642 OutputStream outputStream = urlConnection.getOutputStream(); in setChunkedStreamingMode() local
1648 outputStream.write(outputBytes, i, count); in setChunkedStreamingMode()
1649 outputStream.flush(); in setChunkedStreamingMode()
1683 OutputStream outputStream = connection.getOutputStream();
1684 outputStream.write(requestBody);
1685 outputStream.close();
1824 OutputStream outputStream = connection.getOutputStream();
1825 outputStream.write(requestBody);
1826 outputStream.close();
1860 OutputStream outputStream = connection.getOutputStream();
[all …]