Package com.ctc.wstx.ent
Class IntEntity
java.lang.Object
org.codehaus.stax2.ri.evt.BaseEventImpl
com.ctc.wstx.evt.WEntityDeclaration
com.ctc.wstx.ent.EntityDecl
com.ctc.wstx.ent.IntEntity
- All Implemented Interfaces:
EntityDeclaration
,XMLEvent
,XMLStreamConstants
,org.codehaus.stax2.evt.XMLEvent2
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Location
Location where entity content definition started; points to the starting/opening quote for internal entities.(package private) final char[]
Replacement text of the entity; full array contents.(package private) String
Fields inherited from class com.ctc.wstx.ent.EntityDecl
mContext, mDeclaredExternally, mName
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 -
Method Summary
Modifier and TypeMethodDescriptionstatic IntEntity
static IntEntity
expand
(WstxInputSource parent, XMLResolver res, ReaderConfig cfg, int xmlVersion) Method called to create the new input source through which expansion value of the entity can be read.char[]
Gives raw access to replacement text data...int
boolean
boolean
isParsed()
void
Methods inherited from class com.ctc.wstx.ent.EntityDecl
getBaseURI, getName, getReplacementTextLength, markAsExternallyDeclared, wasDeclaredExternally
Methods inherited from class com.ctc.wstx.evt.WEntityDeclaration
equals, getEventType, hashCode, writeAsEncodedUnicode, writeUsing
Methods inherited from class org.codehaus.stax2.ri.evt.BaseEventImpl
addHash, asCharacters, asEndElement, asStartElement, getLocation, getSchemaType, isAttribute, isCharacters, 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
asCharacters, asEndElement, asStartElement, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement
-
Field Details
-
mContentLocation
Location where entity content definition started; points to the starting/opening quote for internal entities. -
mRepl
final char[] mReplReplacement text of the entity; full array contents. -
mReplText
String mReplText
-
-
Constructor Details
-
IntEntity
-
-
Method Details
-
create
-
create
-
getNotationName
- Specified by:
getNotationName
in interfaceEntityDeclaration
- Specified by:
getNotationName
in classEntityDecl
-
getPublicId
- Specified by:
getPublicId
in interfaceEntityDeclaration
- Specified by:
getPublicId
in classEntityDecl
-
getReplacementText
- Specified by:
getReplacementText
in interfaceEntityDeclaration
- Specified by:
getReplacementText
in classEntityDecl
-
getReplacementText
- Specified by:
getReplacementText
in classEntityDecl
- Throws:
IOException
-
getSystemId
- Specified by:
getSystemId
in interfaceEntityDeclaration
- Specified by:
getSystemId
in classEntityDecl
-
writeEnc
- Specified by:
writeEnc
in classEntityDecl
- Throws:
IOException
-
getReplacementChars
public char[] getReplacementChars()Gives raw access to replacement text data...Note: this is not really safe, as caller can modify the array, but since this method is thought to provide fast access, let's avoid making copy here.
- Specified by:
getReplacementChars
in classEntityDecl
-
isExternal
public boolean isExternal()- Specified by:
isExternal
in classEntityDecl
-
isParsed
public boolean isParsed()- Specified by:
isParsed
in classEntityDecl
-
expand
public WstxInputSource expand(WstxInputSource parent, XMLResolver res, ReaderConfig cfg, int xmlVersion) Description copied from class:EntityDecl
Method called to create the new input source through which expansion value of the entity can be read.- Specified by:
expand
in classEntityDecl
-