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 void
close()
void
flush()
int
getLength()
void
write(byte[] b)
Overridden for performance reasonvoid
write(byte[] b, int off, int len)
Overridden for performance reasonvoid
write(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 IOException
Writes to nowhere- Specified by:
write
in classOutputStream
- Throws:
IOException
-
write
public void write(byte[] b) throws IOException
Overridden for performance reason- Overrides:
write
in classOutputStream
- Throws:
IOException
-
write
public void write(byte[] b, int off, int len) throws IOException
Overridden for performance reason- Overrides:
write
in classOutputStream
- Throws:
IOException
-
getLength
public int getLength()
-
flush
public void flush() throws IOException
- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in classOutputStream
- Throws:
IOException
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classOutputStream
- Throws:
IOException
-
-