Package org.analogweb.util
Class CountingOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- java.io.FilterOutputStream
-
- org.analogweb.util.CountingOutputStream
-
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
public class CountingOutputStream extends FilterOutputStream
- Author:
- snowgooseyk
-
-
Field Summary
-
Fields inherited from class java.io.FilterOutputStream
out
-
-
Constructor Summary
Constructors Constructor Description CountingOutputStream(OutputStream out)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getCount()
void
write(int b)
-
Methods inherited from class java.io.FilterOutputStream
close, flush, write, write
-
Methods inherited from class java.io.OutputStream
nullOutputStream
-
-
-
-
Constructor Detail
-
CountingOutputStream
public CountingOutputStream(OutputStream out)
-
-
Method Detail
-
write
public void write(int b) throws IOException
- Overrides:
write
in classFilterOutputStream
- Throws:
IOException
-
getCount
public long getCount()
-
-