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
reset
Methods inherited from class java.io.OutputStream
nullOutputStream
-
Constructor Details
-
SynchronizedByteCountingOutputStream
-
SynchronizedByteCountingOutputStream
-
-
Method Details
-
flush
- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in classByteCountingOutputStream
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classByteCountingOutputStream
- Throws:
IOException
-
getBytesWritten
public long getBytesWritten()- Overrides:
getBytesWritten
in classByteCountingOutputStream
-
getWrappedStream
- Overrides:
getWrappedStream
in classByteCountingOutputStream
-
write
- Overrides:
write
in classByteCountingOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classByteCountingOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classByteCountingOutputStream
- Throws:
IOException
-