org.globus.cog.karajan.workflow.nodes.restartLog
Class FlushableLockedFileWriter
java.lang.Object
java.io.Writer
java.io.OutputStreamWriter
org.globus.cog.karajan.workflow.nodes.restartLog.FlushableLockedFileWriter
- All Implemented Interfaces:
- Closeable, Flushable, Appendable
public class FlushableLockedFileWriter
- extends OutputStreamWriter
A writer that will sync buffers to disks when flush() is called.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FlushableLockedFileWriter
public FlushableLockedFileWriter(File f,
boolean append)
throws IOException
- Throws:
IOException
flush
public void flush()
throws IOException
- Specified by:
flush
in interface Flushable
- Overrides:
flush
in class OutputStreamWriter
- Throws:
IOException
getFile
public File getFile()
close
public void close()
throws IOException
- Specified by:
close
in interface Closeable
- Overrides:
close
in class OutputStreamWriter
- Throws:
IOException
isLocked
public boolean isLocked()