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
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final String(package private) final boolean(package private) final boolean(package private) boolean(package private) booleanFields inherited from class org.codehaus.stax2.ri.evt.BaseEventImpl
mLocationFields 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
ConstructorsModifierConstructorDescriptionCharactersEventImpl(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.privateCharactersEventImpl(Location loc, String content, boolean cdata, boolean allWS, boolean ignorableWS) Constructor for creating white space characters... -
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 org.codehaus.stax2.ri.evt.BaseEventImpl
addHash, asEndElement, asStartElement, getLocation, getSchemaType, isAttribute, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, iteratedEquals, stringsWithNullsEqual, throwFromIOE, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface javax.xml.stream.events.XMLEvent
asEndElement, asStartElement, getLocation, getSchemaType, isAttribute, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement
-
Field Details
-
mContent
-
mIsCData
final boolean mIsCData -
mIgnorableWS
final boolean mIgnorableWS -
mWhitespaceChecked
boolean mWhitespaceChecked -
mIsWhitespace
boolean mIsWhitespace
-
-
Constructor Details
-
CharactersEventImpl
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. -
CharactersEventImpl
private CharactersEventImpl(Location loc, String content, boolean cdata, boolean allWS, boolean ignorableWS) Constructor for creating white space characters...
-
-
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
-