|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectto.etc.util.HtmlScanner
public class HtmlScanner
This class helps one to scan HTML documents. It contains stuff to scan for tags, to decode attributes and the like.
Constructor Summary | |
---|---|
HtmlScanner()
|
|
HtmlScanner(boolean unquote)
|
Method Summary | |
---|---|
void |
assignTo(HtmlScanner hs)
|
boolean |
atEof()
|
boolean |
atEof(int pos)
|
HtmlScanner |
duplicate()
|
boolean |
findMatchingEndTag(java.lang.String tag)
Finds the first matching end tag at the CURRENT level. |
boolean |
findTag(java.lang.String name)
This tries to find the tag specified starting from the current position in the document. |
java.lang.String |
getCurrentTag()
|
java.lang.String |
getDocument()
|
int |
getPos()
|
int |
getStartPos()
|
int |
inc()
|
void |
moveTo(int ix)
|
java.lang.String |
nextTag()
This scans for the next tag starting at the current position. |
void |
reset()
|
void |
setDocument(java.lang.String s)
|
void |
skipTag()
|
boolean |
tagIsTagEnd()
Returns T if the current location contains the tag end > character. |
java.lang.String |
tagParseInit()
This must be called with the current position on a tag. |
java.lang.String |
tagParseParamName()
This tries to parse a parameter name from the current pos. |
java.lang.String |
tagParseValue()
Can be called after tagParseParamname() returned a name. |
boolean |
tagToEnd()
When called this parses the tag until the end of the tag is reached. |
static java.lang.String |
unquote(java.lang.String s)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HtmlScanner()
public HtmlScanner(boolean unquote)
Method Detail |
---|
public static java.lang.String unquote(java.lang.String s)
public HtmlScanner duplicate()
public void assignTo(HtmlScanner hs)
public void setDocument(java.lang.String s)
public java.lang.String getDocument()
public void moveTo(int ix)
public void reset()
public int getPos()
public int getStartPos()
public int inc()
public java.lang.String getCurrentTag()
public boolean findTag(java.lang.String name)
name
-
public java.lang.String nextTag()
public java.lang.String tagParseInit()
public java.lang.String tagParseParamName()
public java.lang.String tagParseValue()
public boolean tagIsTagEnd()
public boolean atEof()
public boolean atEof(int pos)
public boolean tagToEnd()
public boolean findMatchingEndTag(java.lang.String tag)
tag
- The name of the tag, like "A".
public void skipTag()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |