public class BaseParse extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
(专用程序包) boolean |
handleComment |
(专用程序包) Handler |
handler |
(专用程序包) boolean |
handleText |
private boolean |
isend |
private String |
keyWord |
(专用程序包) String[] |
mask |
| 限定符和类型 | 方法和说明 |
|---|---|
protected int |
checkIsEnd(String html,
int p)
checkIsEnd
|
private int |
comment(String html,
int p)
comment
|
private int |
findScriptEnd(String html,
int p1) |
private int |
findTagEnd(String html,
int p)
findTagEnd
|
protected int |
getKeyWord(String html,
int p)
getKeyWord
|
private boolean |
inMask()
inMask
|
protected boolean |
isBlank(char c)
isBlank
|
protected boolean |
isKeyStopFlag(char c) |
protected boolean |
isKeyWordChar(char c,
int i)
isKeyWordChar
|
private boolean |
isSelfClosed(String str)
isSelfClosed
|
static void |
main(String[] argv) |
void |
parse(String html) |
void |
parsehtml(String html) |
protected void |
text(String html,
int p0,
int p1)
text
|
Handler handler
String[] mask
boolean handleComment
boolean handleText
private boolean isend
private String keyWord
public BaseParse(Handler handler)
public void parse(String html)
public void parsehtml(String html)
private int findScriptEnd(String html, int p1)
private boolean isSelfClosed(String str)
str - Stringprotected void text(String html, int p0, int p1)
html - Stringp1 - intp0 - intprivate int comment(String html, int p)
html - Stringp0 - intprivate boolean inMask()
private int findTagEnd(String html, int p)
html - Stringp1 - intprotected int getKeyWord(String html, int p)
html - Stringp1 - intprotected boolean isKeyWordChar(char c,
int i)
c - chari - intprotected int checkIsEnd(String html, int p)
html - Stringp0 - intprotected boolean isBlank(char c)
c - charprotected boolean isKeyStopFlag(char c)
public static void main(String[] argv)
Copyright © 2023. All rights reserved.