FileDocCategorySizeDatePackage
ParserThread.javaAPI DocExample3499Tue Jun 24 13:23:04 BST 2003org.apache.lucene.demo.html

ParserThread

public class ParserThread extends Thread

Fields Summary
HTMLParser
parser
Constructors Summary
ParserThread(HTMLParser p)

    parser = p;
  
Methods Summary
public voidrun()

				  // convert pipeOut to pipeIn
    try {
      try {					  // parse document to pipeOut
	parser.HTMLDocument(); 
      } catch (ParseException e) {
	System.out.println("Parse Aborted: " + e.getMessage());
      } catch (TokenMgrError e) {
	System.out.println("Parse Aborted: " + e.getMessage());
      } finally {
	parser.pipeOut.close();
	synchronized (parser) {
	  parser.summary.setLength(parser.SUMMARY_LENGTH);
	  parser.titleComplete = true;
	  parser.notifyAll();
	}
      }
    } catch (IOException e) {
	e.printStackTrace();
    }