uk.ac.starlink.ttools
Class CountMode

java.lang.Object
  |
  +--uk.ac.starlink.ttools.ProcessingMode
        |
        +--uk.ac.starlink.ttools.CountMode

public class CountMode
extends ProcessingMode

Processing mode which just counts the number of rows and columns and writes a summary to the output stream.


Constructor Summary
CountMode()
           
 
Method Summary
 String getName()
          Returns the name of this mode.
 void process(StarTable table)
          Counts rows and columns and writes output.
 
Methods inherited from class uk.ac.starlink.ttools.ProcessingMode
getModeUsage, getOutputStream, setArgs
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CountMode

public CountMode()
Method Detail

getName

public String getName()
Description copied from class: ProcessingMode
Returns the name of this mode. The returned value should be short and preferably lower case - it will be used (with a prepended "-") as the name of a command line flag.

Specified by:
getName in class ProcessingMode
Returns:
mode name

process

public void process(StarTable table)
             throws IOException
Counts rows and columns and writes output.

Specified by:
process in class ProcessingMode
Parameters:
table - input table to do something with
IOException

Copyright © 2004 CLRC: Central Laboratory of the Research Councils. All rights reserved.