com.sun.xml.stream.events
public class ProcessingInstructionEvent extends DummyEvent implements javax.xml.stream.events.ProcessingInstruction
fLocation
Constructor and Description |
---|
ProcessingInstructionEvent() |
ProcessingInstructionEvent(java.lang.String targetName,
java.lang.String data) |
ProcessingInstructionEvent(java.lang.String targetName,
java.lang.String data,
javax.xml.stream.Location loc) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getData() |
java.lang.String |
getTarget() |
protected void |
init() |
void |
setData(java.lang.String data) |
void |
setTarget(java.lang.String targetName) |
java.lang.String |
toString() |
void |
writeAsEncodedUnicode(java.io.Writer writer)
This method will write the XMLEvent as per the XML 1.0 specification as Unicode characters.
|
asCharacters, asEndElement, asStartElement, getEventType, getLocation, getSchemaType, isAttribute, isCharacterData, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, setEventType
public ProcessingInstructionEvent()
public ProcessingInstructionEvent(java.lang.String targetName, java.lang.String data)
public ProcessingInstructionEvent(java.lang.String targetName, java.lang.String data, javax.xml.stream.Location loc)
protected void init()
public java.lang.String getTarget()
getTarget
in interface javax.xml.stream.events.ProcessingInstruction
public void setTarget(java.lang.String targetName)
public void setData(java.lang.String data)
public java.lang.String getData()
getData
in interface javax.xml.stream.events.ProcessingInstruction
public java.lang.String toString()
toString
in class java.lang.Object
public void writeAsEncodedUnicode(java.io.Writer writer) throws javax.xml.stream.XMLStreamException
writeAsEncodedUnicode
in interface javax.xml.stream.events.XMLEvent
writeAsEncodedUnicode
in class DummyEvent
writer
- The writer that will output the datajavax.xml.stream.XMLStreamException
- if there is a fatal error writing the eventCopyright ? 2002-2003 Apache XML Project. All Rights Reserved.