nu.validator.saxtree
Class CharBufferNode

java.lang.Object
  extended by nu.validator.saxtree.Node
      extended by nu.validator.saxtree.CharBufferNode
All Implemented Interfaces:
Locator
Direct Known Subclasses:
Characters, Comment, IgnorableWhitespace

public abstract class CharBufferNode
extends Node

A common superclass for character buffer node classes.

Version:
$Id: CharBufferNode.java 367 2008-07-02 18:27:22Z hsivonen $
Author:
hsivonen

Field Summary
protected  char[] buffer
          The buffer.
 
Constructor Summary
CharBufferNode(Locator locator, char[] buf, int start, int length)
          The constructor.
 
Method Summary
 String toString()
          Returns the wrapped buffer as a string.
 
Methods inherited from class nu.validator.saxtree.Node
detach, getAttributes, getColumnNumber, getData, getFirstChild, getLineNumber, getLocalName, getName, getNextSibling, getNodeType, getParentNode, getPrefixMappings, getPreviousSibling, getPublicId, getPublicIdentifier, getQName, getSystemId, getSystemIdentifier, getTarget, getUri, revisit, setNextSibling, setParentNode, visit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

buffer

protected final char[] buffer
The buffer.

Constructor Detail

CharBufferNode

CharBufferNode(Locator locator,
               char[] buf,
               int start,
               int length)
The constructor.

Parameters:
locator - the locator
buf - the buffer
start - the offset
length - the length
Method Detail

toString

public String toString()
Returns the wrapped buffer as a string.

Overrides:
toString in class Object
See Also:
Object.toString()