|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.xml.stream.events.DummyEvent
com.sun.xml.stream.events.CommentEvent
public class CommentEvent
This class contains information about Comment event.
| Field Summary |
|---|
| Fields inherited from class com.sun.xml.stream.events.DummyEvent |
|---|
fLocation |
| Fields inherited from interface javax.xml.stream.XMLStreamConstants |
|---|
ATTRIBUTE, CDATA, CHARACTERS, COMMENT, DTD, END_DOCUMENT, END_ELEMENT, ENTITY_DECLARATION, ENTITY_REFERENCE, NAMESPACE, NOTATION_DECLARATION, PROCESSING_INSTRUCTION, SPACE, START_DOCUMENT, START_ELEMENT |
| Constructor Summary | |
|---|---|
CommentEvent()
|
|
CommentEvent(java.lang.String text)
|
|
| Method Summary | |
|---|---|
java.lang.String |
getText()
Return the string data of the comment, returns empty string if it does not exist |
protected void |
init()
|
java.lang.String |
toString()
|
protected void |
writeAsEncodedUnicodeEx(java.io.Writer writer)
Helper method in order to expose IOException. |
| Methods inherited from class com.sun.xml.stream.events.DummyEvent |
|---|
asCharacters, asEndElement, asStartElement, charEncode, getEventType, getLocation, getSchemaType, isAttribute, isCharacterData, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, setEventType, writeAsEncodedUnicode |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface javax.xml.stream.events.XMLEvent |
|---|
asCharacters, asEndElement, asStartElement, getEventType, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, writeAsEncodedUnicode |
| Constructor Detail |
|---|
public CommentEvent()
public CommentEvent(java.lang.String text)
| Method Detail |
|---|
protected void init()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getText()
getText in interface javax.xml.stream.events.Comment
protected void writeAsEncodedUnicodeEx(java.io.Writer writer)
throws java.io.IOException
DummyEvent
writeAsEncodedUnicodeEx in class DummyEventwriter - The writer that will output the data
java.io.IOException - if there is an IO error
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||