Package ch.qos.logback.core.recovery
Class ResilientFileOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- ch.qos.logback.core.recovery.ResilientOutputStreamBase
-
- ch.qos.logback.core.recovery.ResilientFileOutputStream
-
- All Implemented Interfaces:
java.io.Closeable,java.io.Flushable,java.lang.AutoCloseable
public class ResilientFileOutputStream extends ResilientOutputStreamBase
-
-
Field Summary
Fields Modifier and Type Field Description private java.io.Filefileprivate java.io.FileOutputStreamfos-
Fields inherited from class ch.qos.logback.core.recovery.ResilientOutputStreamBase
os, presumedClean, STATUS_COUNT_LIMIT
-
-
Constructor Summary
Constructors Constructor Description ResilientFileOutputStream(java.io.File file, boolean append, long bufferSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.nio.channels.FileChannelgetChannel()(package private) java.lang.StringgetDescription()java.io.FilegetFile()(package private) java.io.OutputStreamopenNewOutputStream()java.lang.StringtoString()-
Methods inherited from class ch.qos.logback.core.recovery.ResilientOutputStreamBase
addStatus, addStatusIfCountNotOverLimit, attemptRecovery, close, flush, getContext, postIOFailure, setContext, write, write
-
-
-
-
Method Detail
-
getChannel
public java.nio.channels.FileChannel getChannel()
-
getFile
public java.io.File getFile()
-
getDescription
java.lang.String getDescription()
- Specified by:
getDescriptionin classResilientOutputStreamBase
-
openNewOutputStream
java.io.OutputStream openNewOutputStream() throws java.io.IOException- Specified by:
openNewOutputStreamin classResilientOutputStreamBase- Throws:
java.io.IOException
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-