|
HTML Parser Home Page | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.htmlparser.PrototypicalNodeFactory
org.htmlparser.StringNodeFactory
| Field Summary | |
protected boolean |
mConvertNonBreakingSpaces
Flag to tell the parser to convert non breaking space (from to a space " "). |
protected boolean |
mDecode
Flag to tell the parser to decode strings returned by StringNode's toPlainTextString. |
protected boolean |
mRemoveEscapes
Flag to tell the parser to remove escape characters, like \n and \t, returned by StringNode's toPlainTextString. |
| Fields inherited from class org.htmlparser.PrototypicalNodeFactory |
mBlastocyst |
| Constructor Summary | |
StringNodeFactory()
|
|
| Method Summary | |
Node |
createStringNode(Page page,
int start,
int end)
Create a new string node. |
boolean |
getConvertNonBreakingSpaces()
Get the non-breaking space replacing state. |
boolean |
getDecode()
Get the decoding state. |
boolean |
getRemoveEscapes()
Get the escape removing state. |
void |
setConvertNonBreakingSpaces(boolean convert)
Set the non-breaking space replacing state. |
void |
setDecode(boolean decode)
Set the decoding state. |
void |
setRemoveEscapes(boolean remove)
Set the escape removing state. |
| Methods inherited from class org.htmlparser.PrototypicalNodeFactory |
clear, createRemarkNode, createTagNode, get, put, registerTag, registerTags, remove, unregisterTag |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected boolean mDecode
protected boolean mRemoveEscapes
protected boolean mConvertNonBreakingSpaces
| Constructor Detail |
public StringNodeFactory()
| Method Detail |
public Node createStringNode(Page page,
int start,
int end)
createStringNode in interface NodeFactorycreateStringNode in class PrototypicalNodeFactorypage - The page the node is on.start - The beginning position of the string.end - The ending positiong of the string.public void setDecode(boolean decode)
decode - If true, string nodes decode text using Translate.decode(java.lang.String).public boolean getDecode()
true if string nodes decode text.public void setRemoveEscapes(boolean remove)
remove - If true, string nodes remove escape characters.public boolean getRemoveEscapes()
public void setConvertNonBreakingSpaces(boolean convert)
convert - If true, string nodes replace ;nbsp; characters with spaces.public boolean getConvertNonBreakingSpaces()
|
© 2004 Somik Raha Mar 14, 2004
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||