Top Fields Constructors Methods
org.apache.xerces.stax.events

public final Class ProcessingInstructionImpl

extends XMLEventImpl
implements ProcessingInstruction
Class Inheritance
All Implemented Interfaces
javax.xml.stream.events.ProcessingInstruction, javax.xml.stream.events.XMLEvent, javax.xml.stream.XMLStreamConstants
Imports
java.io.IOException, .Writer, javax.xml.stream.Location, .XMLStreamException, javax.xml.stream.events.ProcessingInstruction

Author
Lucian Holland
Version
$Id: ProcessingInstructionImpl.java 730471 2008-12-31 20:45:32Z mrglavas $

Field Summary

Modifier and TypeField and Description
private final String
private final String

Constructor Summary

AccessConstructor and Description
public
ProcessingInstructionImpl(final String target, final String data, final Location location)

Method Summary

Modifier and TypeMethod and Description
public String
getData()

Implements javax.xml.stream.events.ProcessingInstruction.getData.

The data section of the processing instruction
public String
getTarget()

Implements javax.xml.stream.events.ProcessingInstruction.getTarget.

The target section of the processing instruction
public void
writeAsEncodedUnicode(Writer
The writer that will output the data
writer
)

Implements javax.xml.stream.events.XMLEvent.writeAsEncodedUnicode.

This method will write the XMLEvent as per the XML 1.0 specification as Unicode characters.
Inherited from org.apache.xerces.stax.events.XMLEventImpl:
asCharactersasEndElementasStartElementgetEventTypegetLocationgetSchemaTypeisAttributeisCharactersisEndDocumentisEndElementisEntityReferenceisNamespaceisProcessingInstructionisStartDocumentisStartElementtoString

Field Detail

fDataback to summary
private final String fData
fTargetback to summary
private final String fTarget

Constructor Detail

ProcessingInstructionImplback to summary
public ProcessingInstructionImpl(final String target, final String data, final Location location)

Method Detail

getDataback to summary
public String getData()

Implements javax.xml.stream.events.ProcessingInstruction.getData.

Doc from javax.xml.stream.events.ProcessingInstruction.getData.

The data section of the processing instruction

Returns:String

the String value of the PI's data or null

See Also
javax.xml.stream.events.ProcessingInstruction#getData()
getTargetback to summary
public String getTarget()

Implements javax.xml.stream.events.ProcessingInstruction.getTarget.

Doc from javax.xml.stream.events.ProcessingInstruction.getTarget.

The target section of the processing instruction

Returns:String

the String value of the PI or null

See Also
javax.xml.stream.events.ProcessingInstruction#getTarget()
writeAsEncodedUnicodeback to summary
public void writeAsEncodedUnicode(Writer writer) throws XMLStreamException

Implements javax.xml.stream.events.XMLEvent.writeAsEncodedUnicode.

Doc from javax.xml.stream.events.XMLEvent.writeAsEncodedUnicode.

This method will write the XMLEvent as per the XML 1.0 specification as Unicode characters. No indentation or whitespace should be outputted. Any user defined event type SHALL have this method called when being written to on an output stream. Built in Event types MUST implement this method, but implementations MAY choose not call these methods for optimizations reasons when writing out built in Events to an output stream. The output generated MUST be equivalent in terms of the infoset expressed.

Parameters
writer:Writer

The writer that will output the data

Exceptions
XMLStreamException:
if there is a fatal error writing the event