Package org.apache.lucene.demo.html
Class HTMLParser
java.lang.Object
org.apache.lucene.demo.html.HTMLParser
- All Implemented Interfaces:
- HTMLParserConstants
- 
Field SummaryFieldsModifier and TypeFieldDescriptionbooleanstatic intFields inherited from interface org.apache.lucene.demo.html.HTMLParserConstantsAfterEquals, ArgEquals, ArgName, ArgQuote1, ArgQuote2, ArgValue, CloseQuote1, CloseQuote2, Comment1, Comment2, CommentEnd1, CommentEnd2, CommentText1, CommentText2, DeclName, DEFAULT, Entity, EOF, HEX, LET, NUM, Punct, Quote1Text, Quote2Text, ScriptEnd, ScriptStart, ScriptText, SP, Space, TagEnd, TagName, tokenImage, WithinComment1, WithinComment2, WithinQuote1, WithinQuote2, WithinScript, WithinTag, Word
- 
Constructor SummaryConstructorsConstructorDescriptionHTMLParser(File file) Deprecated.Use HTMLParser(FileInputStream) insteadHTMLParser(InputStream stream) HTMLParser(InputStream stream, String encoding) HTMLParser(Reader stream) 
- 
Method SummaryModifier and TypeMethodDescriptionfinal TokenArgValue()final voidfinal TokenDecl()final voidfinal voidfinal TokengetTitle()final TokengetToken(int index) final voidvoidparse()voidReInit(InputStream stream) voidReInit(InputStream stream, String encoding) voidvoidfinal voidvoidsetException(Exception exception) final voidTag()
- 
Field Details- 
SUMMARY_LENGTHpublic static int SUMMARY_LENGTH
- 
token_source
- 
token
- 
jj_nt
- 
lookingAheadpublic boolean lookingAhead
 
- 
- 
Constructor Details- 
HTMLParserDeprecated.Use HTMLParser(FileInputStream) instead- Throws:
- FileNotFoundException
 
- 
HTMLParser
- 
HTMLParser
- 
HTMLParser
- 
HTMLParser
 
- 
- 
Method Details- 
getTitle- Throws:
- IOException
- InterruptedException
 
- 
getMetaTags- Throws:
- IOException
- InterruptedException
 
- 
getSummary- Throws:
- IOException
- InterruptedException
 
- 
getReader- Throws:
- IOException
 
- 
parse- Throws:
- IOException
 
- 
HTMLDocument- Throws:
- ParseException
- IOException
 
- 
Tag- Throws:
- ParseException
- IOException
 
- 
ArgValue- Throws:
- ParseException
 
- 
Decl- Throws:
- ParseException
 
- 
CommentTag- Throws:
- ParseException
 
- 
ScriptTag- Throws:
- ParseException
 
- 
ReInit
- 
ReInit
- 
ReInit
- 
ReInit
- 
getNextToken
- 
getToken
- 
generateParseException
- 
enable_tracingpublic final void enable_tracing()
- 
disable_tracingpublic final void disable_tracing()
- 
setException
- 
getException
 
-