jimmc.roots
Class PrintOptions

java.lang.Object
  |
  +--jimmc.roots.PrintOptions
All Implemented Interfaces:
java.lang.Cloneable

public class PrintOptions
extends java.lang.Object
implements java.lang.Cloneable

PrintOptions is used to pass around all of the information about how the user wants output to be printed.


Field Summary
 boolean includeKeys
          True if we should include key data in the output
 java.io.PrintWriter out
          Where to send the output
 RecordFormat recordFormat
          The format of each record.
 PrintFormat reportFormat
          The overall report format in which to print
 
Constructor Summary
PrintOptions()
           
PrintOptions(PrintFormat f, RecordFormat r)
           
 
Method Summary
protected  java.lang.Object clone()
          Clone the object.
 void printRecords(RootsRecord[] ra)
          Print the specified records.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

out

public java.io.PrintWriter out
Where to send the output

reportFormat

public PrintFormat reportFormat
The overall report format in which to print

recordFormat

public RecordFormat recordFormat
The format of each record.

includeKeys

public boolean includeKeys
True if we should include key data in the output
Constructor Detail

PrintOptions

public PrintOptions()

PrintOptions

public PrintOptions(PrintFormat f,
                    RecordFormat r)
Method Detail

printRecords

public void printRecords(RootsRecord[] ra)
Print the specified records. Uses the formats contained in this object.

clone

protected java.lang.Object clone()
Clone the object.
Overrides:
clone in class java.lang.Object