Top Fields Constructors Methods
com.ctc.wstx.ent

public Class IntEntity

extends EntityDecl
Class Inheritance
Imports
java.io.IOException, .Writer, java.net.URL, javax.xml.stream.Location, .XMLResolver, com.ctc.wstx.api.ReaderConfig, com.ctc.wstx.io.InputSourceFactory, .TextEscaper, .WstxInputLocation, .WstxInputSource

Field Summary

Modifier and TypeField and Description
protected final Location
mContentLocation

Location where entity content definition started; points to the starting/opening quote for internal entities.

pack-priv final char[]
mRepl

Replacement text of the entity; full array contents.

pack-priv String
Inherited from com.ctc.wstx.ent.EntityDecl:
mContextmDeclaredExternallymName

Constructor Summary

AccessConstructor and Description
public
IntEntity(Location loc, String name, URL ctxt, char[] repl, Location defLoc)

Method Summary

Modifier and TypeMethod and Description
public static IntEntity
create(String id, String repl)

public static IntEntity
create(String id, char[] val)

public WstxInputSource
expand(WstxInputSource parent, XMLResolver res, ReaderConfig cfg, int xmlVersion)

Implements abstract com.ctc.wstx.ent.EntityDecl.expand.

Method called to create the new input source through which expansion value of the entity can be read.

public String
public String
getPublicId()

Implements abstract com.ctc.wstx.ent.EntityDecl.getPublicId.

Implements javax.xml.stream.events.EntityDeclaration.getPublicId.

The entity's public identifier, or null if none was given

public char[]
getReplacementChars()

Implements abstract com.ctc.wstx.ent.EntityDecl.getReplacementChars.

Gives raw access to replacement text data...

public String
public int
public String
getSystemId()

Implements abstract com.ctc.wstx.ent.EntityDecl.getSystemId.

Implements javax.xml.stream.events.EntityDeclaration.getSystemId.

The entity's system identifier.

public boolean
public boolean
public void
Inherited from com.ctc.wstx.ent.EntityDecl:
getBaseURIgetNamegetReplacementTextLengthmarkAsExternallyDeclaredwasDeclaredExternally

Field Detail

mContentLocationback to summary
protected final Location mContentLocation

Location where entity content definition started; points to the starting/opening quote for internal entities.

mReplback to summary
pack-priv final char[] mRepl

Replacement text of the entity; full array contents.

mReplTextback to summary
pack-priv String mReplText

Constructor Detail

IntEntityback to summary
public IntEntity(Location loc, String name, URL ctxt, char[] repl, Location defLoc)

Method Detail

createback to summary
public static IntEntity create(String id, String repl)
createback to summary
public static IntEntity create(String id, char[] val)
expandback to summary
public WstxInputSource expand(WstxInputSource parent, XMLResolver res, ReaderConfig cfg, int xmlVersion)

Implements abstract com.ctc.wstx.ent.EntityDecl.expand.

Doc from com.ctc.wstx.ent.EntityDecl.expand.

Method called to create the new input source through which expansion value of the entity can be read.

Annotations
@Override
getNotationNameback to summary
public String getNotationName()

Implements abstract com.ctc.wstx.ent.EntityDecl.getNotationName.

Implements javax.xml.stream.events.EntityDeclaration.getNotationName.

Doc from javax.xml.stream.events.EntityDeclaration.getNotationName.

The name of the associated notation.

Returns:String

the notation name

Annotations
@Override
getPublicIdback to summary
public String getPublicId()

Implements abstract com.ctc.wstx.ent.EntityDecl.getPublicId.

Implements javax.xml.stream.events.EntityDeclaration.getPublicId.

Doc from javax.xml.stream.events.EntityDeclaration.getPublicId.

The entity's public identifier, or null if none was given

Returns:String

the public ID for this declaration or null

Annotations
@Override
getReplacementCharsback to summary
public char[] getReplacementChars()

Implements abstract com.ctc.wstx.ent.EntityDecl.getReplacementChars.

Gives raw access to replacement text data...

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.

Annotations
@Override
getReplacementTextback to summary
public String getReplacementText()

Implements abstract com.ctc.wstx.ent.EntityDecl.getReplacementText.

Implements javax.xml.stream.events.EntityDeclaration.getReplacementText.

Doc from javax.xml.stream.events.EntityDeclaration.getReplacementText.

The replacement text of the entity. This method will only return non-null if this is an internal entity.

Returns:String

null or the replacement text

Annotations
@Override
getReplacementTextback to summary
public int getReplacementText(Writer w) throws IOException

Implements abstract com.ctc.wstx.ent.EntityDecl.getReplacementText.

Annotations
@Override
getSystemIdback to summary
public String getSystemId()

Implements abstract com.ctc.wstx.ent.EntityDecl.getSystemId.

Implements javax.xml.stream.events.EntityDeclaration.getSystemId.

Doc from javax.xml.stream.events.EntityDeclaration.getSystemId.

The entity's system identifier.

Returns:String

the system ID for this declaration or null

Annotations
@Override
isExternalback to summary
public boolean isExternal()

Implements abstract com.ctc.wstx.ent.EntityDecl.isExternal.

Annotations
@Override
isParsedback to summary
public boolean isParsed()

Implements abstract com.ctc.wstx.ent.EntityDecl.isParsed.

Annotations
@Override
writeEncback to summary
public void writeEnc(Writer w) throws IOException

Implements abstract com.ctc.wstx.ent.EntityDecl.writeEnc.

Annotations
@Override