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,XMLEvent2
public class IntEntity extends EntityDecl
-
-
Field Summary
Fields Modifier and Type Field Description protected LocationmContentLocationLocation where entity content definition started; points to the starting/opening quote for internal entities.-
Fields inherited from class com.ctc.wstx.ent.EntityDecl
mDeclaredExternally
-
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
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IntEntitycreate(String id, char[] val)static IntEntitycreate(String id, String repl)WstxInputSourceexpand(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.StringgetNotationName()StringgetPublicId()char[]getReplacementChars()Gives raw access to replacement text data...StringgetReplacementText()intgetReplacementText(Writer w)StringgetSystemId()booleanisExternal()booleanisParsed()voidwriteEnc(Writer w)-
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 Detail
-
mContentLocation
protected final Location mContentLocation
Location where entity content definition started; points to the starting/opening quote for internal entities.
-
-
Method Detail
-
getNotationName
public String getNotationName()
- Specified by:
getNotationNamein interfaceEntityDeclaration- Specified by:
getNotationNamein classEntityDecl
-
getPublicId
public String getPublicId()
- Specified by:
getPublicIdin interfaceEntityDeclaration- Specified by:
getPublicIdin classEntityDecl
-
getReplacementText
public String getReplacementText()
- Specified by:
getReplacementTextin interfaceEntityDeclaration- Specified by:
getReplacementTextin classEntityDecl
-
getReplacementText
public int getReplacementText(Writer w) throws IOException
- Specified by:
getReplacementTextin classEntityDecl- Throws:
IOException
-
getSystemId
public String getSystemId()
- Specified by:
getSystemIdin interfaceEntityDeclaration- Specified by:
getSystemIdin classEntityDecl
-
writeEnc
public void writeEnc(Writer w) throws IOException
- Specified by:
writeEncin 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:
getReplacementCharsin classEntityDecl
-
isExternal
public boolean isExternal()
- Specified by:
isExternalin classEntityDecl
-
isParsed
public boolean isParsed()
- Specified by:
isParsedin classEntityDecl
-
expand
public WstxInputSource expand(WstxInputSource parent, XMLResolver res, ReaderConfig cfg, int xmlVersion)
Description copied from class:EntityDeclMethod called to create the new input source through which expansion value of the entity can be read.- Specified by:
expandin classEntityDecl
-
-