info.monitorenter.unicode.encoder.latex
Class LatexEncoderReader

java.lang.Object
  extended byjava.io.Reader
      extended byinfo.monitorenter.unicode.encoder.latex.LatexEncoderReader

public class LatexEncoderReader
extends Reader

Decorates the given Reader with the support for latex encoding of certain unicode characters.

This is a stream based approach that will not cause memory problems when handling a huge amount of data.

Version:
$Revision: 1.2 $
Author:
Achim Westermann

Field Summary
 
Fields inherited from class java.io.Reader
lock
 
Constructor Summary
LatexEncoderReader(Reader decorate)
          Creates an instance that decorates the given reader.
 
Method Summary
 void close()
           
 int read(char[] cbuf, int off, int len)
           
 
Methods inherited from class java.io.Reader
mark, markSupported, read, read, ready, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LatexEncoderReader

public LatexEncoderReader(Reader decorate)
Creates an instance that decorates the given reader.

Parameters:
decorate - the reader to enrich by the feature of HTML Entity decoding.
Method Detail

close

public void close()
           throws IOException
Throws:
IOException
See Also:
Reader.close()

read

public int read(char[] cbuf,
                int off,
                int len)
         throws IOException
Throws:
IOException
See Also:
Reader.read(char[], int, int)


Copyleft ㊢ 2003-2004 MPL 1.1, All Rights Footloose.