org.apache.lucene.demo.html
Class HTMLParser
- java.lang.Object
-
- org.apache.lucene.demo.html.HTMLParser
-
- All Implemented Interfaces:
- HTMLParserConstants
public class HTMLParser extends java.lang.Object implements HTMLParserConstants
-
-
Field Summary
Fields Modifier and Type Field and Description Tokenjj_ntbooleanlookingAheadstatic intSUMMARY_LENGTHTokentokenHTMLParserTokenManagertoken_source-
Fields inherited from interface org.apache.lucene.demo.html.HTMLParserConstants
AfterEquals, 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 Summary
Constructors Constructor and Description HTMLParser(java.io.File file)Deprecated.Use HTMLParser(FileInputStream) insteadHTMLParser(HTMLParserTokenManager tm)HTMLParser(java.io.InputStream stream)HTMLParser(java.io.Reader stream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description TokenArgValue()voidCommentTag()TokenDecl()voiddisable_tracing()voidenable_tracing()ParseExceptiongenerateParseException()java.util.PropertiesgetMetaTags()TokengetNextToken()java.io.ReadergetReader()java.lang.StringgetSummary()java.lang.StringgetTitle()TokengetToken(int index)voidHTMLDocument()voidReInit(HTMLParserTokenManager tm)voidReInit(java.io.InputStream stream)voidReInit(java.io.Reader stream)voidScriptTag()voidTag()
-
-
-
Field Detail
-
SUMMARY_LENGTH
public static int SUMMARY_LENGTH
-
token_source
public HTMLParserTokenManager token_source
-
token
public Token token
-
jj_nt
public Token jj_nt
-
lookingAhead
public boolean lookingAhead
-
-
Constructor Detail
-
HTMLParser
public HTMLParser(java.io.File file) throws java.io.FileNotFoundExceptionDeprecated. Use HTMLParser(FileInputStream) instead- Throws:
java.io.FileNotFoundException
-
HTMLParser
public HTMLParser(java.io.InputStream stream)
-
HTMLParser
public HTMLParser(java.io.Reader stream)
-
HTMLParser
public HTMLParser(HTMLParserTokenManager tm)
-
-
Method Detail
-
getTitle
public java.lang.String getTitle() throws java.io.IOException, java.lang.InterruptedException- Throws:
java.io.IOExceptionjava.lang.InterruptedException
-
getMetaTags
public java.util.Properties getMetaTags() throws java.io.IOException, java.lang.InterruptedException- Throws:
java.io.IOExceptionjava.lang.InterruptedException
-
getSummary
public java.lang.String getSummary() throws java.io.IOException, java.lang.InterruptedException- Throws:
java.io.IOExceptionjava.lang.InterruptedException
-
getReader
public java.io.Reader getReader() throws java.io.IOException- Throws:
java.io.IOException
-
HTMLDocument
public final void HTMLDocument() throws ParseException, java.io.IOException- Throws:
ParseExceptionjava.io.IOException
-
Tag
public final void Tag() throws ParseException, java.io.IOException- Throws:
ParseExceptionjava.io.IOException
-
ArgValue
public final Token ArgValue() throws ParseException
- Throws:
ParseException
-
Decl
public final Token Decl() throws ParseException
- Throws:
ParseException
-
CommentTag
public final void CommentTag() throws ParseException- Throws:
ParseException
-
ScriptTag
public final void ScriptTag() throws ParseException- Throws:
ParseException
-
ReInit
public void ReInit(java.io.InputStream stream)
-
ReInit
public void ReInit(java.io.Reader stream)
-
ReInit
public void ReInit(HTMLParserTokenManager tm)
-
getNextToken
public final Token getNextToken()
-
getToken
public final Token getToken(int index)
-
generateParseException
public ParseException generateParseException()
-
enable_tracing
public final void enable_tracing()
-
disable_tracing
public final void disable_tracing()
-
-
DataMelt 3.0 © DataMelt by jWork.ORG