com.ctc.wstx.ent
public class IntEntity extends EntityDecl
Modifier and Type | Field and Description |
---|---|
protected javax.xml.stream.Location |
mContentLocation
Location where entity content definition started;
points to the starting/opening quote for internal
entities.
|
mDeclaredExternally
mLocation
Constructor and Description |
---|
IntEntity(javax.xml.stream.Location loc,
java.lang.String name,
java.net.URL ctxt,
char[] repl,
javax.xml.stream.Location defLoc) |
Modifier and Type | Method and Description |
---|---|
static IntEntity |
create(java.lang.String id,
char[] val) |
static IntEntity |
create(java.lang.String id,
java.lang.String repl) |
WstxInputSource |
expand(WstxInputSource parent,
javax.xml.stream.XMLResolver res,
ReaderConfig cfg,
int xmlVersion)
Method called to create the new input source through which expansion
value of the entity can be read.
|
java.lang.String |
getNotationName() |
java.lang.String |
getPublicId() |
char[] |
getReplacementChars()
Gives raw access to replacement text data...
|
java.lang.String |
getReplacementText() |
int |
getReplacementText(java.io.Writer w) |
java.lang.String |
getSystemId() |
boolean |
isExternal() |
boolean |
isParsed() |
void |
writeEnc(java.io.Writer w) |
getBaseURI, getLocation, getName, getReplacementTextLength, markAsExternallyDeclared, wasDeclaredExternally
equals, getEventType, hashCode, writeAsEncodedUnicode, writeUsing
addHash, asCharacters, asEndElement, asStartElement, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, iteratedEquals, stringsWithNullsEqual, throwFromIOE, toString
protected final javax.xml.stream.Location mContentLocation
public IntEntity(javax.xml.stream.Location loc, java.lang.String name, java.net.URL ctxt, char[] repl, javax.xml.stream.Location defLoc)
public static IntEntity create(java.lang.String id, java.lang.String repl)
public static IntEntity create(java.lang.String id, char[] val)
public java.lang.String getNotationName()
getNotationName
in interface javax.xml.stream.events.EntityDeclaration
getNotationName
in class EntityDecl
public java.lang.String getPublicId()
getPublicId
in interface javax.xml.stream.events.EntityDeclaration
getPublicId
in class EntityDecl
public java.lang.String getReplacementText()
getReplacementText
in interface javax.xml.stream.events.EntityDeclaration
getReplacementText
in class EntityDecl
public int getReplacementText(java.io.Writer w) throws java.io.IOException
getReplacementText
in class EntityDecl
java.io.IOException
public java.lang.String getSystemId()
getSystemId
in interface javax.xml.stream.events.EntityDeclaration
getSystemId
in class EntityDecl
public void writeEnc(java.io.Writer w) throws java.io.IOException
writeEnc
in class EntityDecl
java.io.IOException
public char[] getReplacementChars()
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.
getReplacementChars
in class EntityDecl
public boolean isExternal()
isExternal
in class EntityDecl
public boolean isParsed()
isParsed
in class EntityDecl
public WstxInputSource expand(WstxInputSource parent, javax.xml.stream.XMLResolver res, ReaderConfig cfg, int xmlVersion)
EntityDecl
expand
in class EntityDecl