public class HtmlScanner extends Object
| Constructor and Description |
|---|
HtmlScanner() |
HtmlScanner(boolean unquote) |
| Modifier and Type | Method and Description |
|---|---|
void |
assignTo(HtmlScanner hs) |
boolean |
atEof() |
boolean |
atEof(int pos) |
HtmlScanner |
duplicate() |
boolean |
findMatchingEndTag(String tag)
Finds the first matching end tag at the CURRENT level.
|
boolean |
findTag(String name)
This tries to find the tag specified starting from the current position
in the document.
|
String |
getCurrentTag() |
String |
getDocument() |
int |
getPos() |
int |
getStartPos() |
int |
inc() |
void |
moveTo(int ix) |
String |
nextTag()
This scans for the next tag starting at the current position.
|
void |
reset() |
void |
setDocument(String s) |
void |
skipTag() |
boolean |
tagIsTagEnd()
Returns T if the current location contains the tag end > character.
|
String |
tagParseInit()
This must be called with the current position on a tag.
|
String |
tagParseParamName()
This tries to parse a parameter name from the current pos.
|
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 String |
unquote(String s) |
public HtmlScanner duplicate()
public void assignTo(HtmlScanner hs)
public void setDocument(String s)
public String getDocument()
public void moveTo(int ix)
public void reset()
public int getPos()
public int getStartPos()
public int inc()
public String getCurrentTag()
public boolean findTag(String name)
name - public String nextTag()
public String tagParseInit()
public String tagParseParamName()
public String tagParseValue()
public boolean tagIsTagEnd()
public boolean atEof()
public boolean atEof(int pos)
public boolean tagToEnd()
public boolean findMatchingEndTag(String tag)
tag - The name of the tag, like "A".public void skipTag()
Copyright © 2017 etc.to. All rights reserved.