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