jodd-lagarto/src/main/java/jodd/lagarto/dom/Node.java
public void appendTextContent(final Appendable appendable) {
		if (nodeValue != null) {
			if ((nodeType == NodeType.TEXT) || (nodeType == NodeType.CDATA)) {
				try {
					appendable.append(nodeValue);
				} catch (IOException ioex) {
					throw new LagartoDOMException(ioex);
				}
			}
		}
		if (childNodes != null) {
			for (int i = 0, childNodesSize = childNodes.size(); i < childNodesSize; i++) {
				Node childNode = childNodes.get(i);
				childNode.appendTextContent(appendable);
			}
		}
	}
public void appendTextContent(final Appendable appendable) {
		if (nodeValue != null) {
			if ((nodeType == NodeType.TEXT) || (nodeType == NodeType.CDATA)) {
				try {
					appendable.append(nodeValue);
				} catch (IOException ioex) {
					throw new LagartoDOMException(ioex);
				}
			}
		}
		if (childNodes != null) {
			for (int i = 0, childNodesSize = childNodes.size(); i < childNodesSize; i++) {
				Node childNode = childNodes.get(i);
				childNode.appendTextContent(appendable);
			}
		}
	}
public void appendTextContent ( final Appendable appendable ) { if ( nodeValue != null ) { if ( ( nodeType == NodeType . TEXT ) || ( nodeType == NodeType . CDATA ) ) { try { appendable . append ( nodeValue ) ; } catch ( IOException ioex ) { throw new LagartoDOMException ( ioex ) ; } } } if ( childNodes != null ) { for ( int i = 0 , childNodesSize = childNodes . size ( ) ; i < childNodesSize ; i ++ ) { Node childNode = childNodes . get ( i ) ; childNode . appendTextContent ( appendable ) ; } } }
Appends the text content to an <code>Appendable</code>
(<code>StringBuilder</code>, <code>CharBuffer</code>...).
This way we can reuse the <code>Appendable</code> instance
during the creation of text content and have better performances.
Appends the text content to an <code > Appendable< / code > ( <code > StringBuilder< / code > <code > CharBuffer< / code > ... ) . This way we can reuse the <code > Appendable< / code > instance during the creation of text content and have better performances .