com.ctc.wstx.ent
Class ExtEntity

java.lang.Object
  extended bycom.ctc.wstx.ent.EntityDecl
      extended bycom.ctc.wstx.ent.ExtEntity
Direct Known Subclasses:
ParsedExtEntity, UnparsedExtEntity

public abstract class ExtEntity
extends EntityDecl


Constructor Summary
ExtEntity(javax.xml.stream.Location loc, java.lang.String name, java.net.URL ctxt, java.lang.String pubId, java.lang.String sysId)
           
 
Method Summary
abstract  WstxInputSource expand(WstxInputSource parent, javax.xml.stream.XMLResolver res, javax.xml.stream.XMLReporter rep)
          Method called to create the new input source through which expansion value of the entity can be read.
abstract  java.lang.String getNotationName()
           
 java.lang.String getPublicId()
           
 char[] getReplacementChars()
           
 java.lang.String getReplacementText()
           
 int getReplacementText(java.io.Writer w)
           
 java.lang.String getSystemId()
           
 boolean isExternal()
           
abstract  boolean isParsed()
           
abstract  void writeEnc(java.io.Writer w)
           
 
Methods inherited from class com.ctc.wstx.ent.EntityDecl
getBaseURI, getLocation, getName, getReplacementTextLength, getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtEntity

public ExtEntity(javax.xml.stream.Location loc,
                 java.lang.String name,
                 java.net.URL ctxt,
                 java.lang.String pubId,
                 java.lang.String sysId)
Method Detail

getNotationName

public abstract java.lang.String getNotationName()
Specified by:
getNotationName in class EntityDecl

getPublicId

public java.lang.String getPublicId()
Specified by:
getPublicId in class EntityDecl

getReplacementText

public java.lang.String getReplacementText()
Specified by:
getReplacementText in class EntityDecl

getReplacementText

public int getReplacementText(java.io.Writer w)
Specified by:
getReplacementText in class EntityDecl

getSystemId

public java.lang.String getSystemId()
Specified by:
getSystemId in class EntityDecl

writeEnc

public abstract void writeEnc(java.io.Writer w)
                       throws java.io.IOException
Specified by:
writeEnc in class EntityDecl
Throws:
java.io.IOException

getReplacementChars

public char[] getReplacementChars()
Specified by:
getReplacementChars in class EntityDecl

isExternal

public boolean isExternal()
Specified by:
isExternal in class EntityDecl

isParsed

public abstract boolean isParsed()
Specified by:
isParsed in class EntityDecl

expand

public abstract WstxInputSource expand(WstxInputSource parent,
                                       javax.xml.stream.XMLResolver res,
                                       javax.xml.stream.XMLReporter rep)
                                throws java.io.IOException,
                                       javax.xml.stream.XMLStreamException
Description copied from class: EntityDecl
Method called to create the new input source through which expansion value of the entity can be read.

Specified by:
expand in class EntityDecl
Throws:
java.io.IOException
javax.xml.stream.XMLStreamException