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, write
protected int threshold
protected LoadingByteArrayOutputStream buffer
public AbstractThresholdOutputStream(int threshold)
public abstract void thresholdReached() throws IOException
IOException
public abstract void thresholdNotReached() throws IOException
IOException
public void write(byte[] b, int off, int len) throws IOException
write
in class AbstractWrappedOutputStream
IOException
public void write(int b) throws IOException
write
in class AbstractWrappedOutputStream
IOException
public void unBuffer() throws IOException
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class AbstractWrappedOutputStream
IOException
Copyright © 2016 JBoss by Red Hat. All rights reserved.