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:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
getBytesWritten
public long getBytesWritten() -
flush
- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-
reset
public void reset() -
getWrappedStream
-