public class LoggedOutputStream
extends javax.servlet.ServletOutputStream
| Constructor and Description |
|---|
LoggedOutputStream(OutputStream output)
Constructor taking original output stream to wrap.
|
LoggedOutputStream(OutputStream output,
int limit)
Constructor taking original output stream and limit in bytes.
|
| 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.
|
boolean |
overflowed()
Returns true if data limit has been reached.
|
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 LoggedOutputStream(OutputStream output, int limit)
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 boolean overflowed()
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 © 2020 resurface.io. All rights reserved.