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
Constructors -
Method Summary
Methods inherited from class java.io.OutputStream
nullOutputStream, write
-
Constructor Details
-
CountingOutputStream
-
-
Method Details
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
write
- Specified by:
writein classOutputStream- Throws:
IOException
-
flush
- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-
getWrittenCount
public int getWrittenCount()
-