public class HTMLParser extends Object implements HTMLParserConstants
| Modifier and Type | Field and Description |
|---|---|
Token |
jj_nt |
boolean |
lookingAhead |
static int |
SUMMARY_LENGTH |
Token |
token |
HTMLParserTokenManager |
token_source |
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 and Description |
|---|
HTMLParser(File file)
Deprecated.
Use HTMLParser(FileInputStream) instead
|
HTMLParser(HTMLParserTokenManager tm) |
HTMLParser(InputStream stream) |
HTMLParser(InputStream stream,
String encoding) |
HTMLParser(Reader stream) |
| Modifier and Type | Method and Description |
|---|---|
Token |
ArgValue() |
void |
CommentTag() |
Token |
Decl() |
void |
disable_tracing() |
void |
enable_tracing() |
ParseException |
generateParseException() |
Properties |
getMetaTags() |
Token |
getNextToken() |
Reader |
getReader() |
String |
getSummary() |
String |
getTitle() |
Token |
getToken(int index) |
void |
HTMLDocument() |
void |
ReInit(HTMLParserTokenManager tm) |
void |
ReInit(InputStream stream) |
void |
ReInit(InputStream stream,
String encoding) |
void |
ReInit(Reader stream) |
void |
ScriptTag() |
void |
Tag() |
public static int SUMMARY_LENGTH
public HTMLParserTokenManager token_source
public Token token
public Token jj_nt
public boolean lookingAhead
public HTMLParser(File file) throws FileNotFoundException
FileNotFoundExceptionpublic HTMLParser(InputStream stream)
public HTMLParser(InputStream stream, String encoding)
public HTMLParser(Reader stream)
public HTMLParser(HTMLParserTokenManager tm)
public String getTitle() throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic Properties getMetaTags() throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic String getSummary() throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic Reader getReader() throws IOException
IOExceptionpublic final void HTMLDocument()
throws ParseException,
IOException
ParseExceptionIOExceptionpublic final void Tag()
throws ParseException,
IOException
ParseExceptionIOExceptionpublic final Token ArgValue() throws ParseException
ParseExceptionpublic final Token Decl() throws ParseException
ParseExceptionpublic final void CommentTag()
throws ParseException
ParseExceptionpublic final void ScriptTag()
throws ParseException
ParseExceptionpublic void ReInit(InputStream stream)
public void ReInit(InputStream stream, String encoding)
public void ReInit(Reader stream)
public void ReInit(HTMLParserTokenManager tm)
public final Token getNextToken()
public final Token getToken(int index)
public ParseException generateParseException()
public final void enable_tracing()
public final void disable_tracing()
Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.