|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SerializerTrace
This interface defines a set of integer constants that identify trace event types.
Field Summary | |
---|---|
static int |
EVENTTYPE_CDATA
Event type generated after CDATA is generated. |
static int |
EVENTTYPE_CHARACTERS
Event type generated for character data (CDATA and Ignorable Whitespace have their own events). |
static int |
EVENTTYPE_COMMENT
Event type generated after a comment has been added. |
static int |
EVENTTYPE_ENDDOCUMENT
Event type generated when a document ends. |
static int |
EVENTTYPE_ENDELEMENT
Event type generated when an element ends, after it's children have been added. |
static int |
EVENTTYPE_ENTITYREF
Event type generate after an entity ref is created. |
static int |
EVENTTYPE_IGNORABLEWHITESPACE
Event type generated for ignorable whitespace (I'm not sure how much this is actually called. |
static int |
EVENTTYPE_OUTPUT_CHARACTERS
Event type generated when characters are written to an output stream. |
static int |
EVENTTYPE_OUTPUT_PSEUDO_CHARACTERS
Event type generated when characters might be written to an output stream, but these characters never are. |
static int |
EVENTTYPE_PI
Event type generated for processing instructions. |
static int |
EVENTTYPE_STARTDOCUMENT
Event type generated when a document begins. |
static int |
EVENTTYPE_STARTELEMENT
Event type generated when an element begins (after the attributes have been processed but before the children have been added). |
Method Summary | |
---|---|
void |
fireGenerateEvent(int eventType)
Fire startDocument, endDocument events. |
void |
fireGenerateEvent(int eventType,
char[] ch,
int start,
int length)
Fire characters, cdata events. |
void |
fireGenerateEvent(int eventType,
java.lang.String data)
Fire comment and entity ref events. |
void |
fireGenerateEvent(int eventType,
java.lang.String name,
org.xml.sax.Attributes atts)
Fire startElement, endElement events. |
void |
fireGenerateEvent(int eventType,
java.lang.String name,
java.lang.String data)
Fire processingInstruction events. |
boolean |
hasTraceListeners()
Tell if trace listeners are present. |
Field Detail |
---|
static final int EVENTTYPE_STARTDOCUMENT
static final int EVENTTYPE_ENDDOCUMENT
static final int EVENTTYPE_STARTELEMENT
static final int EVENTTYPE_ENDELEMENT
static final int EVENTTYPE_CHARACTERS
static final int EVENTTYPE_IGNORABLEWHITESPACE
static final int EVENTTYPE_PI
static final int EVENTTYPE_COMMENT
static final int EVENTTYPE_ENTITYREF
static final int EVENTTYPE_CDATA
static final int EVENTTYPE_OUTPUT_PSEUDO_CHARACTERS
static final int EVENTTYPE_OUTPUT_CHARACTERS
Method Detail |
---|
boolean hasTraceListeners()
void fireGenerateEvent(int eventType)
eventType
- One of the EVENTTYPE_XXX constants.void fireGenerateEvent(int eventType, java.lang.String name, org.xml.sax.Attributes atts)
eventType
- One of the EVENTTYPE_XXX constants.name
- The name of the element.atts
- The SAX attribute list.void fireGenerateEvent(int eventType, char[] ch, int start, int length)
eventType
- One of the EVENTTYPE_XXX constants.ch
- The char array from the SAX event.start
- The start offset to be used in the char array.length
- The end offset to be used in the chara array.void fireGenerateEvent(int eventType, java.lang.String name, java.lang.String data)
eventType
- One of the EVENTTYPE_XXX constants.name
- The name of the processing instruction.data
- The processing instruction data.void fireGenerateEvent(int eventType, java.lang.String data)
eventType
- One of the EVENTTYPE_XXX constants.data
- The comment or entity ref data.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |