public class HtmlParser extends Object
HtmlParser class.
| Modifier and Type | Class and Description |
|---|---|
static interface |
HtmlParser.Listener |
| Modifier and Type | Field and Description |
|---|---|
static int |
TAG
Constant
TAG=2 |
static int |
TEXT
Constant
TEXT=1 |
| Constructor and Description |
|---|
HtmlParser()
Constructor for HtmlParser.
|
HtmlParser(InputStream _is,
HtmlParser.Listener _listener)
Creates a new instance of Parser
|
HtmlParser(Reader _is,
HtmlParser.Listener _listener) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isTrim() |
boolean |
parse() |
boolean |
parse(Reader _is,
HtmlParser.Listener _listener) |
void |
setTrim(boolean trim) |
protected void |
trim(StringBuffer text) |
public static final int TEXT
TEXT=1public static final int TAG
TAG=2public HtmlParser()
Constructor for HtmlParser.
public HtmlParser(InputStream _is, HtmlParser.Listener _listener)
_is - a InputStream object._listener - a HtmlParser.Listener object.public HtmlParser(Reader _is, HtmlParser.Listener _listener)
public boolean parse(Reader _is, HtmlParser.Listener _listener)
public boolean parse()
protected void trim(StringBuffer text)
public boolean isTrim()
public void setTrim(boolean trim)
Copyright © 2016. All Rights Reserved.