public class DefaultOutputStreamOutputTarget extends Object implements OutputStreamOutputTarget
Constructor and Description |
---|
DefaultOutputStreamOutputTarget(OutputStream outputStream)
Create an instance of
OutputStreamOutputTarget returning the passed OutputStream . |
DefaultOutputStreamOutputTarget(OutputStream outputStream,
boolean close)
Create an instance of
OutputStreamOutputTarget returning the passed OutputStream . |
Modifier and Type | Method and Description |
---|---|
void |
close() |
OutputStream |
getOutputStream() |
boolean |
restartSupported() |
String |
toString() |
public DefaultOutputStreamOutputTarget(OutputStream outputStream)
OutputStreamOutputTarget
returning the passed OutputStream
.
The passed OutputStream
is not closed when the OutputTarget
is closed.
outputStream
- the OutputStream
public DefaultOutputStreamOutputTarget(OutputStream outputStream, boolean close)
OutputStreamOutputTarget
returning the passed OutputStream
.outputStream
- the OutputStream
close
- indicate of the passer OutputStream
should be closed when the OutputTarget
is closedpublic boolean restartSupported()
restartSupported
in interface OutputTarget
public OutputStream getOutputStream()
getOutputStream
in interface OutputStreamOutputTarget
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2004–2022 XWiki. All rights reserved.