org.kaiwitte.workbench.printing
Class RecordPrinterImpl

java.lang.Object
  extended by org.kaiwitte.workbench.printing.RecordPrinterImpl
All Implemented Interfaces:
RecordPrinter

public class RecordPrinterImpl
extends java.lang.Object
implements RecordPrinter

The default implementation of a RecordPrinter.


Constructor Summary
RecordPrinterImpl()
           
 
Method Summary
 void printRecord(MetaRecord record, java.lang.String... templates)
          Prints the record.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RecordPrinterImpl

public RecordPrinterImpl()
Method Detail

printRecord

public void printRecord(MetaRecord record,
                        java.lang.String... templates)
                 throws java.io.IOException
Prints the record. The resulting prints is based on the provided templates.

Specified by:
printRecord in interface RecordPrinter
Parameters:
record - the record to provide values for variables in the templates
templates - the template texts (file names), one per print
Throws:
java.io.IOException - iff an I/O error occurs
See Also:
Tools.replaceVariables(org.kaiwitte.workbench.data.MetaRecord, java.lang.String)