Top Description Fields Constructors Methods
com.sun.xml.internal.stream.events

public Class ProcessingInstructionEvent

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

Implements Processing Instruction Event
Author
Neeraj Bajaj, Sun Microsystems.

Field Summary

Modifier and TypeField and Description
private String
fContent

Processing instruction content

private String
fName

Processing Instruction Name

Inherited from com.sun.xml.internal.stream.events.DummyEvent:
fLocation

Constructor Summary

AccessConstructor and Description
public
public
public

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

protected void
init()

public void
public void
setTarget(String targetName)

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

protected void
writeAsEncodedUnicodeEx(Writer
The writer that will output the data
writer
)

Implements abstract com.sun.xml.internal.stream.events.DummyEvent.writeAsEncodedUnicodeEx.

Helper method in order to expose IOException.

Inherited from com.sun.xml.internal.stream.events.DummyEvent:
asCharactersasEndElementasStartElementcharEncodegetEventTypegetLocationgetSchemaTypeisAttributeisCharacterDataisCharactersisEndDocumentisEndElementisEntityReferenceisNamespaceisProcessingInstructionisStartDocumentisStartElementsetEventTypesetLocationwriteAsEncodedUnicode

Field Detail

fContentback to summary
private String fContent

Processing instruction content

fNameback to summary
private String fName

Processing Instruction Name

Constructor Detail

ProcessingInstructionEventback to summary
public ProcessingInstructionEvent()
ProcessingInstructionEventback to summary
public ProcessingInstructionEvent(String targetName, String data)
ProcessingInstructionEventback to summary
public ProcessingInstructionEvent(String targetName, String data, Location loc)

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

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

initback to summary
protected void init()
setDataback to summary
public void setData(String data)
setTargetback to summary
public void setTarget(String targetName)
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

writeAsEncodedUnicodeExback to summary
protected void writeAsEncodedUnicodeEx(Writer writer) throws IOException

Implements abstract com.sun.xml.internal.stream.events.DummyEvent.writeAsEncodedUnicodeEx.

Doc from com.sun.xml.internal.stream.events.DummyEvent.writeAsEncodedUnicodeEx.

Helper method in order to expose IOException.

Parameters
writer:Writer

The writer that will output the data

Exceptions
IOException:
if there is an IO error