Entity.ExternalEntity, Entity.InternalEntity, Entity.ScannedEntity
Modifier and Type | Field and Description |
---|---|
char[] |
ch
Character buffer.
|
int |
columnNumber |
int |
count
Count of characters present in buffer.
|
static int |
DEFAULT_BUFFER_SIZE
Default buffer size (4096).
|
static int |
DEFAULT_INTERNAL_BUFFER_SIZE
Default internal entity buffer size (1024).
|
static int |
DEFAULT_XMLDECL_BUFFER_SIZE
Default buffer size before we've finished with the XMLDecl:
|
java.lang.String |
encoding
Auto-detected encoding.
|
org.apache.xerces.xni.XMLResourceIdentifier |
entityLocation
entity location information
|
int |
fBufferSize
Buffer size.
|
int |
fLastCount
This variable stores the number of characters read during the load()
operation.
|
int |
fTotalCountTillLastLoad
This variable is used to calculate the current position in the XML stream.
|
boolean |
isExternal |
int |
lineNumber |
boolean |
literal
True if in a literal.
|
boolean |
mayReadChunks |
int |
position
Position in character buffer at any point of time.
|
java.io.Reader |
reader
XXX let these field remain public right now, though we have defined methods for them.
|
java.io.InputStream |
stream
XXX let these field remain public right now, though we have defined methods for them.
|
java.lang.String |
version |
inExternalSubset, name
Constructor and Description |
---|
ScannedEntity(java.lang.String name,
org.apache.xerces.xni.XMLResourceIdentifier entityLocation,
java.io.InputStream stream,
java.io.Reader reader,
java.lang.String encoding,
boolean literal,
boolean mayReadChunks,
boolean isExternal)
Constructs a scanned entity.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Release any resources associated with this entity.
|
java.lang.String |
getEncodingName()
returns the name of the current encoding
|
java.io.InputStream |
getEntityInputStream()
if entity was opened using the stream, return the associated inputstream
with this entity
|
java.io.Reader |
getEntityReader()
Returns the java.io.Reader associated with this entity.Readers are used
to read from the file.
|
java.lang.String |
getEntityVersion()
each 'external' parsed entity may have xml/text declaration containing version information
|
boolean |
isExternal()
Returns true if this is an external entity.
|
boolean |
isUnparsed()
Returns true if this is an unparsed entity.
|
void |
setEntityVersion(java.lang.String version)
each 'external' parsed entity may have xml/text declaration containing version information
|
java.lang.String |
toString()
Returns a string representation of this object.
|
clear, isEntityDeclInExternalSubset, setValues
public static final int DEFAULT_BUFFER_SIZE
public int fBufferSize
public static final int DEFAULT_XMLDECL_BUFFER_SIZE
public static final int DEFAULT_INTERNAL_BUFFER_SIZE
public java.io.InputStream stream
public java.io.Reader reader
public org.apache.xerces.xni.XMLResourceIdentifier entityLocation
public java.lang.String encoding
public boolean literal
public boolean isExternal
public java.lang.String version
public char[] ch
public int position
public int count
public int lineNumber
public int columnNumber
public int fTotalCountTillLastLoad
public int fLastCount
public boolean mayReadChunks
public ScannedEntity(java.lang.String name, org.apache.xerces.xni.XMLResourceIdentifier entityLocation, java.io.InputStream stream, java.io.Reader reader, java.lang.String encoding, boolean literal, boolean mayReadChunks, boolean isExternal)
public java.lang.String getEncodingName()
public java.lang.String getEntityVersion()
public void setEntityVersion(java.lang.String version)
String
- version of the external parsed entitypublic java.io.Reader getEntityReader()
public java.io.InputStream getEntityInputStream()
public void close() throws java.io.IOException
java.io.IOException
public final boolean isExternal()
isExternal
in class Entity
public final boolean isUnparsed()
isUnparsed
in class Entity
public java.lang.String toString()
toString
in class java.lang.Object
Copyright ? 2002-2003 Apache XML Project. All Rights Reserved.