org.schmant.arg
Class MultiplexingExistingWritableFileProxy

java.lang.Object
  extended by org.schmant.arg.AbstractMultiplexingWritableFileProxy
      extended by org.schmant.arg.MultiplexingExistingWritableFileProxy
All Implemented Interfaces:
Lockable, WriteLockable, WritableFile, NewWritableFile

public class MultiplexingExistingWritableFileProxy
extends AbstractMultiplexingWritableFileProxy

This writable file proxy writes its output to one or more other writable files. The target files must already exist.

The proxied objects are interpreted using InterpretAsWritableFileStrategy.

Since:
0.8
Author:
Karl Gustafsson
See Also:
MultiplexingNewWritableFileProxy

Constructor Summary
MultiplexingExistingWritableFileProxy(Object... proxied)
          Create a new multiplexing writable file proxy.
 
Method Summary
protected  WritableFile getFileFromArgumentInterpreter(Object f)
           
 
Methods inherited from class org.schmant.arg.AbstractMultiplexingWritableFileProxy
getFiles, getWriteLock, isWriteLockedByCurrentThread, lockForWriting, openChannelForAppend, openChannelForWrite, openForAppend, openForWrite
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiplexingExistingWritableFileProxy

public MultiplexingExistingWritableFileProxy(Object... proxied)
Create a new multiplexing writable file proxy.

Parameters:
proxied - The proxied files. They must exist when this object is to be used. If one or more of the arguments are Collection objects, all objects are extracted from the collections.
Method Detail

getFileFromArgumentInterpreter

protected WritableFile getFileFromArgumentInterpreter(Object f)
Specified by:
getFileFromArgumentInterpreter in class AbstractMultiplexingWritableFileProxy