com.simonstl.ents
Class EntsRefsFilter

java.lang.Object
  |
  +--java.io.Reader
        |
        +--java.io.FilterReader
              |
              +--com.simonstl.ents.EntsRefsFilter

public final class EntsRefsFilter
extends java.io.FilterReader

This class takes character references and converts them into character entities or vice-versa.

Version:
0.01 $Date: 2002/02/04 $
Author:
Simon St.Laurent

Field Summary
protected  boolean ents
           
protected  boolean generating
           
protected  java.lang.StringBuffer myBuffer
           
protected  EntRules rules
           
 
Fields inherited from class java.io.FilterReader
in
 
Fields inherited from class java.io.Reader
lock
 
Constructor Summary
EntsRefsFilter(java.io.InputStream in)
           
EntsRefsFilter(java.io.Reader in)
           
 
Method Summary
protected  int feedFromInternalBuffer()
           
static void main(java.lang.String[] args)
          This class defines a main() method to test the EntRefsFilter.
 int read()
           
 int read(char[] text, int offset, int length)
           
 void setEnts()
           
 void setEnts(boolean _ents)
           
 void setRefs()
           
 void setRules(EntRules _rules)
           
 
Methods inherited from class java.io.FilterReader
close, mark, markSupported, ready, reset, skip
 
Methods inherited from class java.io.Reader
read
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

generating

protected boolean generating

ents

protected boolean ents

rules

protected EntRules rules

myBuffer

protected java.lang.StringBuffer myBuffer
Constructor Detail

EntsRefsFilter

public EntsRefsFilter(java.io.InputStream in)

EntsRefsFilter

public EntsRefsFilter(java.io.Reader in)
Method Detail

setRules

public void setRules(EntRules _rules)

setEnts

public void setEnts()

setEnts

public void setEnts(boolean _ents)

setRefs

public void setRefs()

feedFromInternalBuffer

protected int feedFromInternalBuffer()

read

public int read()
         throws java.io.IOException
Overrides:
read in class java.io.FilterReader

read

public int read(char[] text,
                int offset,
                int length)
         throws java.io.IOException
Overrides:
read in class java.io.FilterReader

main

public static void main(java.lang.String[] args)
This class defines a main() method to test the EntRefsFilter. Doesn't currently work because it needs rules set up.