Package org.apache.nifi.stream.io
Class SynchronizedByteCountingOutputStream
java.lang.Object
java.io.OutputStream
org.apache.nifi.stream.io.ByteCountingOutputStream
org.apache.nifi.stream.io.SynchronizedByteCountingOutputStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.nifi.stream.io.ByteCountingOutputStream
resetMethods inherited from class java.io.OutputStream
nullOutputStream
-
Constructor Details
-
SynchronizedByteCountingOutputStream
-
SynchronizedByteCountingOutputStream
-
-
Method Details
-
flush
- Specified by:
flushin interfaceFlushable- Overrides:
flushin classByteCountingOutputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classByteCountingOutputStream- Throws:
IOException
-
getBytesWritten
public long getBytesWritten()- Overrides:
getBytesWrittenin classByteCountingOutputStream
-
getWrappedStream
- Overrides:
getWrappedStreamin classByteCountingOutputStream
-
write
- Overrides:
writein classByteCountingOutputStream- Throws:
IOException
-
write
- Overrides:
writein classByteCountingOutputStream- Throws:
IOException
-
write
- Overrides:
writein classByteCountingOutputStream- Throws:
IOException
-