Class PasteFiles

  • All Implemented Interfaces:
    AdditionalInformationHandler, CleanUpHandler, Destroyable, GlobalInfoSupporter, FileWriter, LoggingLevelHandler, LoggingSupporter, OptionHandler, QuickInfoSupporter, ShallowCopySupporter<Actor>, SizeOfHandler, Stoppable, StoppableWithFeedback, VariablesInspectionHandler, VariableChangeListener, Actor, ErrorHandler, InputConsumer, Serializable, Comparable

    public class PasteFiles
    extends AbstractFileWriter
    Generates a single file from combined lines from the input files. Line-by-line the lines get joined (separated by the specified delimiter) and output in the output file.
    This transformer works similar to the Unix 'paste' command. But instead of providing a list of delimiters, a single one is used.

    Input/output:
    - accepts:
       java.lang.String[]
       java.io.File[]


    Valid options are:

    -D <int> (property: debugLevel)
        The greater the number the more additional info the scheme may output to 
        the console (0 = off).
        default: 0
        minimum: 0
     
    -name <java.lang.String> (property: name)
        The name of the actor.
        default: PasteFiles
     
    -annotation <adams.core.base.BaseText> (property: annotations)
        The annotations to attach to this actor.
        default: 
     
    -skip (property: skip)
        If set to true, transformation is skipped and the input token is just forwarded 
        as it is.
     
    -stop-flow-on-error (property: stopFlowOnError)
        If set to true, the flow gets stopped in case this actor encounters an error;
         useful for critical actors.
     
    -output <adams.core.io.PlaceholderFile> (property: outputFile)
        The output file containing the combined content.
        default: ${CWD}
     
    -delimiter <java.lang.String> (property: delimiter)
        The delimiter to use for combining the lines (backquoted, e.g., use '   ' 
        for tab).
        default: \\t
     
    Version:
    $Revision$
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Field Detail

      • m_Delimiter

        protected String m_Delimiter
        the delimiter to use.
    • Constructor Detail

      • PasteFiles

        public PasteFiles()