GXPARSE hosted by SourceForge.net Logo

ca.gorman.util.scan
Class ScanningWriter

java.lang.Object
  extended by java.io.Writer
      extended by ca.gorman.util.scan.ScanningWriter
All Implemented Interfaces:
Closeable, Flushable, Appendable

public class ScanningWriter
extends Writer

A Writer with a character scanning and matching postprocessor.


Constructor Summary
protected ScanningWriter(ScannerFactory scannerFactory, Writer writer, RuleList ruleList)
           
  ScanningWriter(Writer writer, RuleList ruleList)
           
  ScanningWriter(Writer writer, ScanRule... scanRule)
           
 
Method Summary
 void close()
           
 void flush()
           
 void write(char[] chr, int offset, int length)
           
 
Methods inherited from class java.io.Writer
append, append, append, write, write, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScanningWriter

protected ScanningWriter(ScannerFactory scannerFactory,
                         Writer writer,
                         RuleList ruleList)
                  throws IOException,
                         InterruptedException
Throws:
IOException
InterruptedException

ScanningWriter

public ScanningWriter(Writer writer,
                      RuleList ruleList)
               throws IOException,
                      InterruptedException
Throws:
IOException
InterruptedException

ScanningWriter

public ScanningWriter(Writer writer,
                      ScanRule... scanRule)
               throws IOException,
                      InterruptedException
Throws:
IOException
InterruptedException
Method Detail

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Specified by:
close in class Writer
Throws:
IOException

flush

public void flush()
           throws IOException
Specified by:
flush in interface Flushable
Specified by:
flush in class Writer
Throws:
IOException

write

public void write(char[] chr,
                  int offset,
                  int length)
           throws IOException
Specified by:
write in class Writer
Throws:
IOException

GXPARSE download

GXPARSE Generic XML Stream Parser API and supporting tools.   Release $Name: gxparse-sf-alpha-2_0 $
Copyright 2003-2004 Ian E. Gorman
Released under GNU Lesser General Public License