Class CounterOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- net.sourceforge.plantuml.directdot.CounterOutputStream
-
- All Implemented Interfaces:
java.io.Closeable,java.io.Flushable,java.lang.AutoCloseable
public class CounterOutputStream extends java.io.OutputStream
-
-
Constructor Summary
Constructors Constructor Description CounterOutputStream(java.io.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
-
-
-
Method Detail
-
write
public void write(int b) throws java.io.IOExceptionWrites to nowhere- Specified by:
writein classjava.io.OutputStream- Throws:
java.io.IOException
-
write
public void write(byte[] b) throws java.io.IOExceptionOverridden for performance reason- Overrides:
writein classjava.io.OutputStream- Throws:
java.io.IOException
-
write
public void write(byte[] b, int off, int len) throws java.io.IOExceptionOverridden for performance reason- Overrides:
writein classjava.io.OutputStream- Throws:
java.io.IOException
-
getLength
public int getLength()
-
flush
public void flush() throws java.io.IOException- Specified by:
flushin interfacejava.io.Flushable- Overrides:
flushin classjava.io.OutputStream- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Overrides:
closein classjava.io.OutputStream- Throws:
java.io.IOException
-
-