Package org.apache.avro.grpc
Class AvroInputStream.CountingOutputStream
java.lang.Object
java.io.OutputStream
org.apache.avro.grpc.AvroInputStream.CountingOutputStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
- Enclosing class:
AvroInputStream
An
OutputStream
that writes to a target OutputStream
and
provides total number of bytes written to it.-
Constructor Summary
-
Method Summary
Methods inherited from class java.io.OutputStream
nullOutputStream, write
-
Constructor Details
-
CountingOutputStream
-
-
Method Details
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
write
- Specified by:
write
in classOutputStream
- Throws:
IOException
-
flush
- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in classOutputStream
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classOutputStream
- Throws:
IOException
-
getWrittenCount
public int getWrittenCount()
-