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.File
file
private java.io.FileOutputStream
fos
-
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.FileChannel
getChannel()
(package private) java.lang.String
getDescription()
java.io.File
getFile()
(package private) java.io.OutputStream
openNewOutputStream()
java.lang.String
toString()
-
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:
getDescription
in classResilientOutputStreamBase
-
openNewOutputStream
java.io.OutputStream openNewOutputStream() throws java.io.IOException
- Specified by:
openNewOutputStream
in classResilientOutputStreamBase
- Throws:
java.io.IOException
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-