Package com.github.javacliparser
Class SerializeUtils.ByteCountingOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- com.github.javacliparser.SerializeUtils.ByteCountingOutputStream
-
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
- Enclosing class:
- SerializeUtils
public static class SerializeUtils.ByteCountingOutputStream extends OutputStream
-
-
Field Summary
Fields Modifier and Type Field Description protected int
numBytesWritten
-
Constructor Summary
Constructors Constructor Description ByteCountingOutputStream()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getNumBytesWritten()
void
write(byte[] b)
void
write(byte[] b, int off, int len)
void
write(int b)
-
Methods inherited from class java.io.OutputStream
close, flush, nullOutputStream
-
-
-
-
Method Detail
-
getNumBytesWritten
public int getNumBytesWritten()
-
write
public void write(int b) throws IOException
- Specified by:
write
in classOutputStream
- Throws:
IOException
-
write
public void write(byte[] b, int off, int len) throws IOException
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
write
public void write(byte[] b) throws IOException
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
-