public class ResilientFileOutputStream extends ResilientOutputStreamBase
| Modifier and Type | Field and Description |
|---|---|
private java.io.File |
file |
private java.io.FileOutputStream |
fos |
os, presumedClean, STATUS_COUNT_LIMIT| Constructor and Description |
|---|
ResilientFileOutputStream(java.io.File file,
boolean append) |
| Modifier and Type | Method and 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() |
addStatus, addStatusIfCountNotOverLimit, attemptRecovery, close, flush, getContext, postIOFailure, setContext, write, writepublic ResilientFileOutputStream(java.io.File file,
boolean append)
throws java.io.FileNotFoundException
java.io.FileNotFoundExceptionpublic java.nio.channels.FileChannel getChannel()
public java.io.File getFile()
java.lang.String getDescription()
getDescription in class ResilientOutputStreamBasejava.io.OutputStream openNewOutputStream()
throws java.io.IOException
openNewOutputStream in class ResilientOutputStreamBasejava.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Object