Package org.codehaus.stax2.ri.evt
Class CharactersEventImpl
- java.lang.Object
-
- org.codehaus.stax2.ri.evt.BaseEventImpl
-
- org.codehaus.stax2.ri.evt.CharactersEventImpl
-
- All Implemented Interfaces:
Characters
,XMLEvent
,XMLStreamConstants
,XMLEvent2
public class CharactersEventImpl extends BaseEventImpl implements Characters
-
-
Field Summary
-
Fields inherited from class org.codehaus.stax2.ri.evt.BaseEventImpl
mLocation
-
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
Constructors Constructor Description CharactersEventImpl(Location loc, String content, boolean cdata)
Constructor for regular unspecified (but non-CDATA) characters event type, which may or may not be all whitespace, but is not specified as ignorable white space.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Characters
asCharacters()
static CharactersEventImpl
createIgnorableWS(Location loc, String content)
static CharactersEventImpl
createNonIgnorableWS(Location loc, String content)
boolean
equals(Object o)
Declared abstract to force redefinition by sub-classesString
getData()
int
getEventType()
int
hashCode()
Declared abstract to force redefinition by sub-classesboolean
isCData()
boolean
isCharacters()
boolean
isIgnorableWhiteSpace()
boolean
isWhiteSpace()
void
setWhitespaceStatus(boolean status)
void
writeAsEncodedUnicode(Writer w)
protected static void
writeEscapedXMLText(Writer w, String text)
void
writeUsing(XMLStreamWriter2 w)
-
Methods inherited from class org.codehaus.stax2.ri.evt.BaseEventImpl
addHash, asEndElement, asStartElement, getLocation, getSchemaType, isAttribute, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, iteratedEquals, stringsWithNullsEqual, throwFromIOE, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface javax.xml.stream.events.XMLEvent
asEndElement, asStartElement, getLocation, getSchemaType, isAttribute, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement
-
-
-
-
Method Detail
-
createIgnorableWS
public static final CharactersEventImpl createIgnorableWS(Location loc, String content)
-
createNonIgnorableWS
public static final CharactersEventImpl createNonIgnorableWS(Location loc, String content)
-
asCharacters
public Characters asCharacters()
- Specified by:
asCharacters
in interfaceXMLEvent
- Overrides:
asCharacters
in classBaseEventImpl
-
getEventType
public int getEventType()
- Specified by:
getEventType
in interfaceXMLEvent
- Specified by:
getEventType
in classBaseEventImpl
-
isCharacters
public boolean isCharacters()
- Specified by:
isCharacters
in interfaceXMLEvent
- Overrides:
isCharacters
in classBaseEventImpl
-
writeAsEncodedUnicode
public void writeAsEncodedUnicode(Writer w) throws XMLStreamException
- Specified by:
writeAsEncodedUnicode
in interfaceXMLEvent
- Specified by:
writeAsEncodedUnicode
in classBaseEventImpl
- Throws:
XMLStreamException
-
writeUsing
public void writeUsing(XMLStreamWriter2 w) throws XMLStreamException
- Specified by:
writeUsing
in interfaceXMLEvent2
- Specified by:
writeUsing
in classBaseEventImpl
- Throws:
XMLStreamException
-
getData
public String getData()
- Specified by:
getData
in interfaceCharacters
-
isCData
public boolean isCData()
- Specified by:
isCData
in interfaceCharacters
-
isIgnorableWhiteSpace
public boolean isIgnorableWhiteSpace()
- Specified by:
isIgnorableWhiteSpace
in interfaceCharacters
-
isWhiteSpace
public boolean isWhiteSpace()
- Specified by:
isWhiteSpace
in interfaceCharacters
-
setWhitespaceStatus
public void setWhitespaceStatus(boolean status)
-
equals
public boolean equals(Object o)
Description copied from class:BaseEventImpl
Declared abstract to force redefinition by sub-classes- Specified by:
equals
in classBaseEventImpl
-
hashCode
public int hashCode()
Description copied from class:BaseEventImpl
Declared abstract to force redefinition by sub-classes- Specified by:
hashCode
in classBaseEventImpl
-
writeEscapedXMLText
protected static void writeEscapedXMLText(Writer w, String text) throws IOException
- Throws:
IOException
-
-