public class LoggedOutputStream
extends javax.servlet.ServletOutputStream
| Constructor and Description |
|---|
LoggedOutputStream(OutputStream output)
Constructor taking original output stream to wrap.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this output stream and releases any system resources associated with this stream.
|
void |
flush()
Flushes this output stream and forces any buffered output bytes to be written out.
|
byte[] |
logged()
Return raw data logged so far.
|
void |
write(byte[] b)
Writes the specified byte array to this output stream.
|
void |
write(byte[] b,
int off,
int len)
Writes len bytes from the specified byte array starting at offset off to this output stream.
|
void |
write(int b)
Writes the specified byte to this output stream.
|
public LoggedOutputStream(OutputStream output)
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class OutputStreamIOExceptionpublic byte[] logged()
public void write(int b)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] b)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] b,
int off,
int len)
throws IOException
write in class OutputStreamIOExceptionCopyright © 2019 resurface.io. All rights reserved.