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.
|
(package private) char[] |
mRepl
Replacement text of the entity; full array contents.
|
(package private) java.lang.String |
mReplText |
mContext, mDeclaredExternally, mName| 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, wasDeclaredExternallyequals, getEventType, hashCode, writeAsEncodedUnicode, writeUsingaddHash, asCharacters, asEndElement, asStartElement, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, iteratedEquals, stringsWithNullsEqual, throwFromIOE, toStringprotected final javax.xml.stream.Location mContentLocation
final char[] mRepl
java.lang.String mReplText
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.EntityDeclarationgetNotationName in class EntityDeclpublic java.lang.String getPublicId()
getPublicId in interface javax.xml.stream.events.EntityDeclarationgetPublicId in class EntityDeclpublic java.lang.String getReplacementText()
getReplacementText in interface javax.xml.stream.events.EntityDeclarationgetReplacementText in class EntityDeclpublic int getReplacementText(java.io.Writer w)
throws java.io.IOException
getReplacementText in class EntityDecljava.io.IOExceptionpublic java.lang.String getSystemId()
getSystemId in interface javax.xml.stream.events.EntityDeclarationgetSystemId in class EntityDeclpublic void writeEnc(java.io.Writer w)
throws java.io.IOException
writeEnc in class EntityDecljava.io.IOExceptionpublic 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 EntityDeclpublic boolean isExternal()
isExternal in class EntityDeclpublic boolean isParsed()
isParsed in class EntityDeclpublic WstxInputSource expand(WstxInputSource parent, javax.xml.stream.XMLResolver res, ReaderConfig cfg, int xmlVersion)
EntityDeclexpand in class EntityDecl