public class HTMLParser extends java.lang.Object implements HTMLParserConstants
Modifier and Type | Field and Description |
---|---|
Token |
jj_nt
Next token.
|
static int |
SUMMARY_LENGTH |
Token |
token
Current token.
|
HTMLParserTokenManager |
token_source
Generated Token Manager.
|
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(java.io.File file)
Deprecated.
Use HTMLParser(FileInputStream) instead
|
HTMLParser(HTMLParserTokenManager tm)
Constructor with generated Token Manager.
|
HTMLParser(java.io.InputStream stream)
Constructor with InputStream.
|
HTMLParser(java.io.InputStream stream,
java.lang.String encoding)
Constructor with InputStream and supplied encoding
|
HTMLParser(java.io.Reader stream)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Token |
ArgValue() |
void |
CommentTag() |
Token |
Decl() |
void |
disable_tracing()
Disable tracing.
|
void |
enable_tracing()
Enable tracing.
|
ParseException |
generateParseException()
Generate ParseException.
|
java.util.Properties |
getMetaTags() |
Token |
getNextToken()
Get the next Token.
|
java.io.Reader |
getReader() |
java.lang.String |
getSummary() |
java.lang.String |
getTitle() |
Token |
getToken(int index)
Get the specific Token.
|
void |
HTMLDocument() |
void |
ReInit(HTMLParserTokenManager tm)
Reinitialise.
|
void |
ReInit(java.io.InputStream stream)
Reinitialise.
|
void |
ReInit(java.io.InputStream stream,
java.lang.String encoding)
Reinitialise.
|
void |
ReInit(java.io.Reader stream)
Reinitialise.
|
void |
ScriptTag() |
void |
Tag() |
public static int SUMMARY_LENGTH
public HTMLParserTokenManager token_source
public Token token
public Token jj_nt
public HTMLParser(java.io.File file) throws java.io.FileNotFoundException
java.io.FileNotFoundException
public HTMLParser(java.io.InputStream stream)
public HTMLParser(java.io.InputStream stream, java.lang.String encoding)
public HTMLParser(java.io.Reader stream)
public HTMLParser(HTMLParserTokenManager tm)
public java.lang.String getTitle() throws java.io.IOException, java.lang.InterruptedException
java.io.IOException
java.lang.InterruptedException
public java.util.Properties getMetaTags() throws java.io.IOException, java.lang.InterruptedException
java.io.IOException
java.lang.InterruptedException
public java.lang.String getSummary() throws java.io.IOException, java.lang.InterruptedException
java.io.IOException
java.lang.InterruptedException
public java.io.Reader getReader() throws java.io.IOException
java.io.IOException
public final void HTMLDocument() throws ParseException, java.io.IOException
ParseException
java.io.IOException
public final void Tag() throws ParseException, java.io.IOException
ParseException
java.io.IOException
public final Token ArgValue() throws ParseException
ParseException
public final Token Decl() throws ParseException
ParseException
public final void CommentTag() throws ParseException
ParseException
public final void ScriptTag() throws ParseException
ParseException
public void ReInit(java.io.InputStream stream)
public void ReInit(java.io.InputStream stream, java.lang.String encoding)
public void ReInit(java.io.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-2016 Apache Software Foundation. All Rights Reserved.