|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.xml.stream.Entity
com.sun.xml.stream.Entity.ScannedEntity
public static class Entity.ScannedEntity
Entity state.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.sun.xml.stream.Entity |
---|
Entity.ExternalEntity, Entity.InternalEntity, Entity.ScannedEntity |
Field Summary | |
---|---|
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
|
Fields inherited from class com.sun.xml.stream.Entity |
---|
inExternalSubset, name |
Constructor Summary | |
---|---|
Entity.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. |
Method Summary | |
---|---|
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. |
Methods inherited from class com.sun.xml.stream.Entity |
---|
clear, isEntityDeclInExternalSubset, setValues |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
public Entity.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)
Method Detail |
---|
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |