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.
public class DecodingNode extends AbstractNodeDecorator
AbstractNodeDecorator
delegate
Constructor and Description |
---|
DecodingNode(Text node)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toPlainTextString()
Deprecated.
A string representation of the node.
|
accept, clone, collectInto, doSemanticAction, equals, getChildren, getEndPosition, getPage, getParent, getStartPosition, getText, setChildren, setEndPosition, setPage, setParent, setStartPosition, setText, toHtml, toString
public DecodingNode(Text node)
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
HTML Parser is an open source library released under LGPL.