org.schmant.arg
Interface NewWritableFile

All Superinterfaces:
Lockable, WritableFile, WriteLockable
All Known Implementing Classes:
AbstractMultiplexingWritableFileProxy, BZip2NewWritableFileProxy, GZipNewWritableFileProxy, LzmaNewWritableFileProxy, MultiplexingExistingWritableFileProxy, MultiplexingNewWritableFileProxy

public interface NewWritableFile
extends WritableFile

A new writable file is a writable file that is created the first time that it is written to. It is often used as generator (and process) task targets to ensure that an existing file is not overwritten by mistake.

By implementing this interface, a writable file object guarantees that a new file will be created the first time that this object is written to.

Objects of this type can be interpreted by the InterpretAsNewWritableFileStrategy method.

Since:
0.8
Author:
Karl Gustafsson

Method Summary
 
Methods inherited from interface org.entityfs.WritableFile
openChannelForAppend, openChannelForWrite, openForAppend, openForWrite
 
Methods inherited from interface org.entityfs.lock.WriteLockable
getWriteLock, isWriteLockedByCurrentThread, lockForWriting