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.
|
mDeclaredExternallyATTRIBUTE, 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, 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, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitasCharacters, asEndElement, asStartElement, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElementprotected final Location mContentLocation
public String getNotationName()
getNotationName in interface EntityDeclarationgetNotationName in class EntityDeclpublic String getPublicId()
getPublicId in interface EntityDeclarationgetPublicId in class EntityDeclpublic String getReplacementText()
getReplacementText in interface EntityDeclarationgetReplacementText in class EntityDeclpublic int getReplacementText(Writer w) throws IOException
getReplacementText in class EntityDeclIOExceptionpublic String getSystemId()
getSystemId in interface EntityDeclarationgetSystemId in class EntityDeclpublic void writeEnc(Writer w) throws IOException
writeEnc in class EntityDeclIOExceptionpublic 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, XMLResolver res, ReaderConfig cfg, int xmlVersion)
EntityDeclexpand in class EntityDeclCopyright © 2012–2015 FasterXML. All rights reserved.