org.databene.platform.file
Class FileJoiner

java.lang.Object
  extended by org.databene.task.AbstractTask
      extended by org.databene.platform.file.FileJoiner
All Implemented Interfaces:
java.io.Closeable, org.databene.commons.ThreadAware, Task

public class FileJoiner
extends AbstractTask

Joins several source files into a destination file. If the property 'append' is 'true' and the destination file already exists, it will append the source files' contents to the existing file.

Created at 16.09.2009 15:50:25

Since:
0.6.0
Author:
Volker Bergmann

Field Summary
 
Fields inherited from class org.databene.task.AbstractTask
taskName
 
Constructor Summary
FileJoiner()
           
 
Method Summary
 TaskResult execute(org.databene.commons.Context ctx, org.databene.commons.ErrorHandler errorHandler)
          Executes the task's work, possibly interacting with the context.
 java.lang.String getDestination()
           
 java.lang.String[] getSources()
           
 boolean isAppend()
           
 boolean isDeleteSources()
           
 void setAppend(boolean append)
           
 void setDeleteSources(boolean deleteSources)
           
 void setDestination(java.lang.String destination)
           
 void setSources(java.lang.String[] sources)
           
 
Methods inherited from class org.databene.task.AbstractTask
close, getTaskName, isParallelizable, isThreadSafe, pageFinished, setTaskName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FileJoiner

public FileJoiner()
Method Detail

getSources

public java.lang.String[] getSources()

setSources

public void setSources(java.lang.String[] sources)

getDestination

public java.lang.String getDestination()

setDestination

public void setDestination(java.lang.String destination)

isAppend

public boolean isAppend()

setAppend

public void setAppend(boolean append)

isDeleteSources

public boolean isDeleteSources()

setDeleteSources

public void setDeleteSources(boolean deleteSources)

execute

public TaskResult execute(org.databene.commons.Context ctx,
                          org.databene.commons.ErrorHandler errorHandler)
Description copied from interface: Task
Executes the task's work, possibly interacting with the context.



Copyright © 2013. All Rights Reserved.