public abstract class AbstractThresholdOutputStream extends AbstractWrappedOutputStream
| Modifier and Type | Field and Description |
|---|---|
protected LoadingByteArrayOutputStream |
buffer |
protected int |
threshold |
allowFlush, wrappedStream, written| Constructor and Description |
|---|
AbstractThresholdOutputStream(int threshold) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
abstract void |
thresholdNotReached() |
abstract void |
thresholdReached() |
void |
unBuffer() |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
allowFlush, flush, onFirstWrite, writeprotected int threshold
protected LoadingByteArrayOutputStream buffer
public AbstractThresholdOutputStream(int threshold)
public abstract void thresholdReached()
throws IOException
IOExceptionpublic abstract void thresholdNotReached()
throws IOException
IOExceptionpublic void write(byte[] b,
int off,
int len)
throws IOException
write in class AbstractWrappedOutputStreamIOExceptionpublic void write(int b)
throws IOException
write in class AbstractWrappedOutputStreamIOExceptionpublic void unBuffer()
throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class AbstractWrappedOutputStreamIOExceptionApache CXF