This project has retired. For details please refer to its Attic page.

org.apache.lenya.lucene.parser
Class PreParser

java.lang.Object
  extended by org.apache.lenya.lucene.parser.PreParser

public class PreParser
extends java.lang.Object

The Java HTML parser cannot handle self-closing text. This class converts all "/>" strings to ">" to avoid this problem.


Constructor Summary
PreParser()
          Creates a new instance of PreParser
 
Method Summary
 java.io.Reader parse(java.io.Reader reader)
          Parses HTML from a reader.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PreParser

public PreParser()
Creates a new instance of PreParser

Method Detail

parse

public java.io.Reader parse(java.io.Reader reader)
                     throws java.io.IOException
Parses HTML from a reader.

Throws:
java.io.IOException


Copyright © 1999-2005 Apache Software Foundation. All Rights Reserved.