uk.ac.starlink.ttools.mode
Class CopyMode

java.lang.Object
  extended by uk.ac.starlink.ttools.mode.CopyMode
All Implemented Interfaces:
ProcessingMode

public class CopyMode
extends Object
implements ProcessingMode

Processing mode which writes out a table.

Since:
11 Feb 2005
Author:
Mark Taylor (Starlink)

Constructor Summary
CopyMode()
           
 
Method Summary
 TableConsumer createConsumer(uk.ac.starlink.task.Environment env)
          Creates a TableConsumer, deriving any additional required configuration from a given environment.
static TableConsumer createConsumer(uk.ac.starlink.task.Environment env, String loc, String fmt)
          Creates a TableConsumer which writes to a given location.
 uk.ac.starlink.task.Parameter[] getAssociatedParameters()
          Returns a list of any parameters which are associated with this mode.
 String getDescription()
          Returns a textual description of this processing mode.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CopyMode

public CopyMode()
Method Detail

getAssociatedParameters

public uk.ac.starlink.task.Parameter[] getAssociatedParameters()
Description copied from interface: ProcessingMode
Returns a list of any parameters which are associated with this mode.

Specified by:
getAssociatedParameters in interface ProcessingMode
Returns:
parameter list

getDescription

public String getDescription()
Description copied from interface: ProcessingMode
Returns a textual description of this processing mode. This will be included in the user document so should be in XML.

Specified by:
getDescription in interface ProcessingMode
Returns:
textual description of this mode

createConsumer

public TableConsumer createConsumer(uk.ac.starlink.task.Environment env)
                             throws uk.ac.starlink.task.TaskException
Description copied from interface: ProcessingMode
Creates a TableConsumer, deriving any additional required configuration from a given environment.

Specified by:
createConsumer in interface ProcessingMode
Parameters:
env - execution environment
Throws:
uk.ac.starlink.task.TaskException

createConsumer

public static TableConsumer createConsumer(uk.ac.starlink.task.Environment env,
                                           String loc,
                                           String fmt)
                                    throws uk.ac.starlink.task.UsageException
Creates a TableConsumer which writes to a given location.

Parameters:
env - execution environment
loc - location of output
fmt - output format name
Throws:
uk.ac.starlink.task.UsageException


Copyright © 2017 Central Laboratory of the Research Councils. All Rights Reserved.