textbender.g.xml.sax.ext
Class CommentEvent

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

public class CommentEvent
extends Object
implements SAXEvent

Persistent capture of a SAX comment() event.

See Also:
LexicalHandler.comment(char[], int, int)

Constructor Summary
CommentEvent(char[] ch, int start, int length)
          Creates a CommentEvent.
 
Method Summary
 char[] ch()
           
static CommentEvent createOrReturn(char[] ch, int start, int length)
          Creates a CommentEvent or, if length is zero or less, returns i0().
static CommentEvent i0()
          The common instance of an empty CommentEvent.
 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

CommentEvent

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

Method Detail

i0

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


createOrReturn

public static CommentEvent createOrReturn(char[] ch,
                                          int start,
                                          int length)
Creates a CommentEvent 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