com.sun.xml.stream.events
Class ProcessingInstructionEvent
java.lang.Object
com.sun.xml.stream.events.DummyEvent
com.sun.xml.stream.events.ProcessingInstructionEvent
- All Implemented Interfaces:
- javax.xml.stream.events.ProcessingInstruction, javax.xml.stream.events.XMLEvent, javax.xml.stream.XMLStreamConstants
public class ProcessingInstructionEvent
- extends DummyEvent
- implements javax.xml.stream.events.ProcessingInstruction
Implements Processing Instruction Event
- Author:
- Neeraj Bajaj, Sun Microsystems.
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 |
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 |
ProcessingInstructionEvent
public ProcessingInstructionEvent()
ProcessingInstructionEvent
public ProcessingInstructionEvent(java.lang.String targetName,
java.lang.String data)
ProcessingInstructionEvent
public ProcessingInstructionEvent(java.lang.String targetName,
java.lang.String data,
javax.xml.stream.Location loc)
init
protected void init()
getTarget
public java.lang.String getTarget()
- Specified by:
getTarget
in interface javax.xml.stream.events.ProcessingInstruction
setTarget
public void setTarget(java.lang.String targetName)
setData
public void setData(java.lang.String data)
getData
public java.lang.String getData()
- Specified by:
getData
in interface javax.xml.stream.events.ProcessingInstruction
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
writeAsEncodedUnicodeEx
protected void writeAsEncodedUnicodeEx(java.io.Writer writer)
throws java.io.IOException
- Description copied from class:
DummyEvent
- Helper method in order to expose IOException.
- Specified by:
writeAsEncodedUnicodeEx
in class DummyEvent
- Parameters:
writer
- The writer that will output the data
- Throws:
java.io.IOException
- if there is an IO error
Copyright ? 2002-2003 Apache XML Project. All Rights Reserved.