Package net.sourceforge.plantuml
Class CounterOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- net.sourceforge.plantuml.CounterOutputStream
-
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
public class CounterOutputStream extends OutputStream
-
-
Constructor Summary
Constructors Constructor Description CounterOutputStream(OutputStream os)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidflush()intgetLength()voidwrite(byte[] b)Overridden for performance reasonvoidwrite(byte[] b, int off, int len)Overridden for performance reasonvoidwrite(int b)Writes to nowhere-
Methods inherited from class java.io.OutputStream
nullOutputStream
-
-
-
-
Constructor Detail
-
CounterOutputStream
public CounterOutputStream(OutputStream os)
-
-
Method Detail
-
write
public void write(int b) throws IOExceptionWrites to nowhere- Specified by:
writein classOutputStream- Throws:
IOException
-
write
public void write(byte[] b) throws IOExceptionOverridden for performance reason- Overrides:
writein classOutputStream- Throws:
IOException
-
write
public void write(byte[] b, int off, int len) throws IOExceptionOverridden for performance reason- Overrides:
writein classOutputStream- Throws:
IOException
-
getLength
public int getLength()
-
flush
public void flush() throws IOException- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-
-