Package org.apache.nifi.stream.io
Class ByteCountingOutputStream
java.lang.Object
java.io.OutputStream
org.apache.nifi.stream.io.ByteCountingOutputStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
- Direct Known Subclasses:
SynchronizedByteCountingOutputStream
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.OutputStream
nullOutputStream
-
Field Details
-
out
-
bytesWritten
private long bytesWritten
-
-
Constructor Details
-
ByteCountingOutputStream
-
ByteCountingOutputStream
-
-
Method Details
-
write
- Specified by:
write
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
getBytesWritten
public long getBytesWritten() -
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
-
reset
public void reset() -
getWrappedStream
-