info.monitorenter.unicode.decoder.html
Class HtmlEntityDecoderReader

java.lang.Object
  extended byjava.io.Reader
      extended byinfo.monitorenter.unicode.decoder.html.HtmlEntityDecoderReader

public class HtmlEntityDecoderReader
extends Reader

Decorates the given Reader with the support for html entity decoding.

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

HTML entities are described in http://www.w3.org/TR/html401/sgml/entities.html

Version:
$Revision: 1.4 $
Author:
Achim Westermann

Field Summary
 
Fields inherited from class java.io.Reader
lock
 
Constructor Summary
HtmlEntityDecoderReader(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

HtmlEntityDecoderReader

public HtmlEntityDecoderReader(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.