|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--prupp.html.HTMLBlock
A class to handle a block of text and split it into a text/tags - vector.
Constructor Summary | |
HTMLBlock(java.lang.String pagepart)
create a new HTMLBlock with the given page. |
Method Summary | |
protected int |
findSeparator(int i)
Get the index of the next separator character. |
protected int |
findwhite(int i)
find the index of a "white" that is something that ends a token |
protected int |
getCommentTag(int i)
Get the index of where the comment ends. |
java.util.Vector |
getElements()
Get the Vector of elements (the strings and tags). |
java.lang.String |
getRest()
Get the rest of the block. |
static void |
main(java.lang.String[] args)
Simple testprogram for this class. |
protected int |
nextNonWhite(int i)
Get the index of the next nonwhite token. |
protected void |
parse()
build the internal representation |
protected int |
setAttributes(HTMLTag html,
int start)
Sets all attributes for a htmltag. |
java.lang.String |
toString()
Get the string representation of this object. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public HTMLBlock(java.lang.String pagepart)
pagepart
- the block of data to handle.Method Detail |
protected void parse()
protected int findwhite(int i)
i
- the index to search from.protected int nextNonWhite(int i)
i
- the index to search fromprotected int findSeparator(int i)
i
- the index to search fromprotected int setAttributes(HTMLTag html, int start)
start
- the index to start getting tokens from.protected int getCommentTag(int i)
i
- the index to start searching from.public java.lang.String toString()
public java.util.Vector getElements()
public java.lang.String getRest()
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |