public class ByteLimitOutputStream extends LimitOutputStream
LimitOutputStream.DoneCallback
_callback, _isDone
out
Constructor and Description |
---|
ByteLimitOutputStream(OutputStream out,
LimitOutputStream.DoneCallback done,
long limit) |
Modifier and Type | Method and Description |
---|---|
void |
write(byte[] src,
int off,
int len)
Subclasses MUST override the following method
such that it calls done() when finished
and throws EOFException if called again
|
isDone, setDone, write
close, flush, write
public ByteLimitOutputStream(OutputStream out, LimitOutputStream.DoneCallback done, long limit)
limit
- greater than zeropublic void write(byte[] src, int off, int len) throws IOException
LimitOutputStream
write
in class LimitOutputStream
IOException