public class MiserOutputStream extends FilterOutputStream
| Modifier and Type | Field and Description |
|---|---|
protected long |
count |
protected boolean |
passFlushes |
out| Constructor and Description |
|---|
MiserOutputStream(OutputStream out)
Wraps another output stream, counting the number of bytes written.
|
MiserOutputStream(OutputStream out,
boolean passFlushes)
Wraps another output stream, counting the number of bytes written.
|
public MiserOutputStream(OutputStream out)
out - the output stream to be wrappedpublic MiserOutputStream(OutputStream out, boolean passFlushes)
out - the output stream to be wrappedpublic long getCount()
public void write(byte[] b,
int off,
int len)
throws IOException
write in class FilterOutputStreamIOExceptionpublic void write(int b)
throws IOException
write in class FilterOutputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class FilterOutputStreamIOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class FilterOutputStreamIOExceptionCopyright © 2015 The International Internet Preservation Consortium. All Rights Reserved.