public class ByteLimitOutputStream extends LimitOutputStream
LimitOutputStream.DoneCallback_callback, _isDoneout| 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, writeclose, flush, writepublic ByteLimitOutputStream(OutputStream out, LimitOutputStream.DoneCallback done, long limit)
limit - greater than zeropublic void write(byte[] src,
int off,
int len)
throws IOException
LimitOutputStreamwrite in class LimitOutputStreamIOException