Class RollingFileAppender.CountingOutputStream
java.lang.Object
java.io.OutputStream
org.apache.log4j.rolling.RollingFileAppender.CountingOutputStream
- All Implemented Interfaces:
Closeable, Flushable, AutoCloseable
- Enclosing class:
RollingFileAppender
Wrapper for OutputStream that will report all write
operations back to this class for file length calculations.
- Since:
- 1.3
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final OutputStreamWrapped output stream.private final RollingFileAppenderRolling file appender to inform of stream writes. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
os
Wrapped output stream. -
rfa
Rolling file appender to inform of stream writes.
-
-
Constructor Details
-
CountingOutputStream
Constructor.- Parameters:
os- output stream to wrap.rfa- rolling file appender to inform.
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-
flush
- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
write
- Specified by:
writein classOutputStream- Throws:
IOException
-