Class CharactersEventImpl
java.lang.Object
org.codehaus.stax2.ri.evt.BaseEventImpl
org.codehaus.stax2.ri.evt.CharactersEventImpl
- All Implemented Interfaces:
Characters, XMLEvent, XMLStreamConstants, XMLEvent2
-
Field Summary
Fields inherited from class BaseEventImpl
mLocationFields inherited from interface 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
ConstructorsConstructorDescriptionCharactersEventImpl(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
Modifier and TypeMethodDescriptionstatic final CharactersEventImplcreateIgnorableWS(Location loc, String content) static final CharactersEventImplcreateNonIgnorableWS(Location loc, String content) booleanDeclared abstract to force redefinition by sub-classesgetData()intinthashCode()Declared abstract to force redefinition by sub-classesbooleanisCData()booleanbooleanbooleanvoidsetWhitespaceStatus(boolean status) voidprotected static voidwriteEscapedXMLText(Writer w, String text) voidMethods inherited from class BaseEventImpl
addHash, asEndElement, asStartElement, getLocation, getSchemaType, isAttribute, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, iteratedEquals, stringsWithNullsEqual, throwFromIOE, toStringMethods inherited from interface XMLEvent
asEndElement, asStartElement, getLocation, getSchemaType, isAttribute, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement
-
Constructor Details
-
CharactersEventImpl
-
-
Method Details
-
createIgnorableWS
-
createNonIgnorableWS
-
asCharacters
- Specified by:
asCharactersin interfaceXMLEvent- Overrides:
asCharactersin classBaseEventImpl
-
getEventType
public int getEventType()- Specified by:
getEventTypein interfaceXMLEvent- Specified by:
getEventTypein classBaseEventImpl
-
isCharacters
public boolean isCharacters()- Specified by:
isCharactersin interfaceXMLEvent- Overrides:
isCharactersin classBaseEventImpl
-
writeAsEncodedUnicode
- Specified by:
writeAsEncodedUnicodein interfaceXMLEvent- Specified by:
writeAsEncodedUnicodein classBaseEventImpl- Throws:
XMLStreamException
-
writeUsing
- Specified by:
writeUsingin interfaceXMLEvent2- Specified by:
writeUsingin classBaseEventImpl- Throws:
XMLStreamException
-
getData
- Specified by:
getDatain interfaceCharacters
-
isCData
public boolean isCData()- Specified by:
isCDatain interfaceCharacters
-
isIgnorableWhiteSpace
public boolean isIgnorableWhiteSpace()- Specified by:
isIgnorableWhiteSpacein interfaceCharacters
-
isWhiteSpace
public boolean isWhiteSpace()- Specified by:
isWhiteSpacein interfaceCharacters
-
setWhitespaceStatus
public void setWhitespaceStatus(boolean status) -
equals
Description copied from class:BaseEventImplDeclared abstract to force redefinition by sub-classes- Specified by:
equalsin classBaseEventImpl
-
hashCode
public int hashCode()Description copied from class:BaseEventImplDeclared abstract to force redefinition by sub-classes- Specified by:
hashCodein classBaseEventImpl
-
writeEscapedXMLText
- Throws:
IOException
-