laser.regularlanguage.regularexpression.util
Class REWriter<L extends LabelInterface>

java.lang.Object
  extended by laser.regularlanguage.regularexpression.util.REWriter<L>
Type Parameters:
L - The type of Label associated with the REs.

public class REWriter<L extends LabelInterface>
extends java.lang.Object

The REWriter class writes out the RE to the specified output.

Author:
Heather M. Conboy (laser-software@cs.umass.edu)

Constructor Summary
REWriter()
          Creates a new REWriter.
 
Method Summary
 void write(RE<L> theRE, java.io.File outFile)
          Writes out the RE to the specified output File.
 void write(RE<L> theRE, java.io.Writer out)
          Writes out the RE to the specified output Writer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

REWriter

public REWriter()
Creates a new REWriter.

Method Detail

write

public void write(RE<L> theRE,
                  java.io.File outFile)
           throws java.io.IOException,
                  REException
Writes out the RE to the specified output File.

PRECONDITIONS:

Parameters:
theRE - The RE to be written
outFile - The File to use as output (non-null)
Throws:
java.io.IOException - if an I/O related error occurs
REException - if an RE related error occurs

write

public void write(RE<L> theRE,
                  java.io.Writer out)
           throws java.io.IOException,
                  REException
Writes out the RE to the specified output Writer.

PRECONDITIONS:

Parameters:
theRE - the RE to be written
out - The Writer to use as output (non-null)
Throws:
java.io.IOException - if an I/O related error occurs
REException - if an RE related error occurs