public class SizeCountOutputStream extends OutputStream
SizeCountOutputStream class.
| Constructor and Description |
|---|
SizeCountOutputStream(OutputStream stream)
Constructor for SizeCountOutputStream.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
long |
getSize()
getSize.
|
void |
write(int b) |
write, writepublic SizeCountOutputStream(OutputStream stream)
Constructor for SizeCountOutputStream.
stream - a OutputStream object.public void write(int b)
throws IOException
write in class OutputStreamIOExceptionpublic long getSize()
getSize.
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class OutputStreamIOExceptionCopyright © 2016. All Rights Reserved.