public class IntEntity extends EntityDecl
Modifier and Type | Field and Description |
---|---|
protected Location |
mContentLocation
Location where entity content definition started;
points to the starting/opening quote for internal
entities.
|
mDeclaredExternally
ATTRIBUTE, CDATA, CHARACTERS, COMMENT, DTD, END_DOCUMENT, END_ELEMENT, ENTITY_DECLARATION, ENTITY_REFERENCE, NAMESPACE, NOTATION_DECLARATION, PROCESSING_INSTRUCTION, SPACE, START_DOCUMENT, START_ELEMENT
Constructor and Description |
---|
IntEntity(Location loc,
String name,
URL ctxt,
char[] repl,
Location defLoc) |
Modifier and Type | Method and Description |
---|---|
static IntEntity |
create(String id,
char[] val) |
static IntEntity |
create(String id,
String repl) |
WstxInputSource |
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.
|
String |
getNotationName() |
String |
getPublicId() |
char[] |
getReplacementChars()
Gives raw access to replacement text data...
|
String |
getReplacementText() |
int |
getReplacementText(Writer w) |
String |
getSystemId() |
boolean |
isExternal() |
boolean |
isParsed() |
void |
writeEnc(Writer w) |
getBaseURI, getName, getReplacementTextLength, markAsExternallyDeclared, wasDeclaredExternally
equals, getEventType, hashCode, writeAsEncodedUnicode, writeUsing
addHash, asCharacters, asEndElement, asStartElement, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, iteratedEquals, stringsWithNullsEqual, throwFromIOE, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
asCharacters, asEndElement, asStartElement, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement
protected final Location mContentLocation
public String getNotationName()
getNotationName
in interface EntityDeclaration
getNotationName
in class EntityDecl
public String getPublicId()
getPublicId
in interface EntityDeclaration
getPublicId
in class EntityDecl
public String getReplacementText()
getReplacementText
in interface EntityDeclaration
getReplacementText
in class EntityDecl
public int getReplacementText(Writer w) throws IOException
getReplacementText
in class EntityDecl
IOException
public String getSystemId()
getSystemId
in interface EntityDeclaration
getSystemId
in class EntityDecl
public void writeEnc(Writer w) throws IOException
writeEnc
in class EntityDecl
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, XMLResolver res, ReaderConfig cfg, int xmlVersion)
EntityDecl
expand
in class EntityDecl
Copyright © 2018 FasterXML. All rights reserved.