textbender.g.xml.sax
Class CharactersEvent

java.lang.Object
  extended by CharactersEvent
All Implemented Interfaces:
SAXEvent

public class CharactersEvent
extends Object
implements SAXEvent

Persistent capture of a SAX characters() event.

See Also:
ContentHandler.characters(char[], int, int)

Constructor Summary
CharactersEvent(char[] ch, int start, int length)
          Creates a CharactersEvent.
 
Method Summary
 char[] ch()
           
static CharactersEvent createOrReturn(char[] ch, int start, int length)
          Creates a CharactersEvent or, if length is zero or less, returns i0().
static CharactersEvent i0()
          The common instance of an empty CharactersEvent.
 int length()
           
 void send(ContentHandler handler)
          Sends this event to the specified content handler.
 int start()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CharactersEvent

public CharactersEvent(char[] ch,
                       int start,
                       int length)
Creates a CharactersEvent.

Method Detail

i0

public static CharactersEvent i0()
The common instance of an empty CharactersEvent.


createOrReturn

public static CharactersEvent createOrReturn(char[] ch,
                                             int start,
                                             int length)
Creates a CharactersEvent or, if length is zero or less, returns i0().


ch

public char[] ch()

start

public int start()

length

public int length()

send

public void send(ContentHandler handler)
          throws SAXException
Description copied from interface: SAXEvent
Sends this event to the specified content handler.

Specified by:
send in interface SAXEvent
Throws:
SAXException