|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.htmlparser.nodeDecorators.AbstractNodeDecorator org.htmlparser.nodeDecorators.NonBreakingSpaceConvertingNode
Use either direct subclasses of the appropriate node and set them on the
PrototypicalNodeFactory
,
or use a dynamic proxy implementing the required node type interface.
AbstractNodeDecorator
Field Summary |
Fields inherited from class org.htmlparser.nodeDecorators.AbstractNodeDecorator |
delegate |
Constructor Summary | |
NonBreakingSpaceConvertingNode(Text newDelegate)
Deprecated. |
Method Summary | |
java.lang.String |
toPlainTextString()
Deprecated. A string representation of the node. |
Methods inherited from class org.htmlparser.nodeDecorators.AbstractNodeDecorator |
accept, clone, collectInto, doSemanticAction, equals, getChildren, getEndPosition, getFirstChild, getLastChild, getNextSibling, getPage, getParent, getPreviousSibling, getStartPosition, getText, setChildren, setEndPosition, setPage, setParent, setStartPosition, setText, toHtml, toString |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public NonBreakingSpaceConvertingNode(Text newDelegate)
Method Detail |
public java.lang.String toPlainTextString()
Node
for (Enumeration e = parser.elements (); e.hasMoreElements ();) // or do whatever processing you wish with the plain text string System.out.println ((Node)e.nextElement ()).toPlainTextString ());
toPlainTextString
in interface Node
toPlainTextString
in class AbstractNodeDecorator
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |