org.apache.xerces.impl

Class XMLEntityManager.ScannedEntity

public class XMLEntityManager.ScannedEntity extends XMLEntityManager.Entity

Entity state.

Author: Andy Clark, IBM

UNKNOWN:

Field Summary
intbaseCharOffset
Base character offset for computing absolute character offset.
char[]ch
Character buffer.
intcolumnNumber
Column number.
intcount
Count of characters in buffer.
Stringencoding
Auto-detected encoding.
XMLResourceIdentifierentityLocation
entity location information
booleanisExternal
intlineNumber
Line number.
booleanliteral
True if in a literal.
booleanmayReadChunks
intposition
Position in character buffer.
Readerreader
Reader.
intstartPosition
Start position in character buffer.
InputStreamstream
Input stream.
StringxmlVersion
XML version.
Constructor Summary
ScannedEntity(String name, XMLResourceIdentifier entityLocation, InputStream stream, Reader reader, String encoding, boolean literal, boolean mayReadChunks, boolean isExternal)
Constructs a scanned entity.
Method Summary
intgetCharacterOffset()
intgetColumnNumber()
StringgetEncoding()
StringgetExpandedSystemId()
intgetLineNumber()
StringgetLiteralSystemId()
StringgetXMLVersion()
booleanisEncodingExternallySpecified()
Returns whether the encoding of this entity was externally specified.
booleanisExternal()
Returns true if this is an external entity.
booleanisUnparsed()
Returns true if this is an unparsed entity.
voidsetEncodingExternallySpecified(boolean value)
Sets whether the encoding of this entity was externally specified.
voidsetReader(InputStream stream, String encoding, Boolean isBigEndian)
StringtoString()
Returns a string representation of this object.

Field Detail

baseCharOffset

public int baseCharOffset
Base character offset for computing absolute character offset.

ch

public char[] ch
Character buffer.

columnNumber

public int columnNumber
Column number.

count

public int count
Count of characters in buffer.

encoding

public String encoding
Auto-detected encoding.

entityLocation

public XMLResourceIdentifier entityLocation
entity location information

isExternal

public boolean isExternal

lineNumber

public int lineNumber
Line number.

literal

public boolean literal
True if in a literal.

mayReadChunks

public boolean mayReadChunks

position

public int position
Position in character buffer.

reader

public Reader reader
Reader.

startPosition

public int startPosition
Start position in character buffer.

stream

public InputStream stream
Input stream.

xmlVersion

public String xmlVersion
XML version. *

Constructor Detail

ScannedEntity

public ScannedEntity(String name, XMLResourceIdentifier entityLocation, InputStream stream, Reader reader, String encoding, boolean literal, boolean mayReadChunks, boolean isExternal)
Constructs a scanned entity.

Method Detail

getCharacterOffset

public int getCharacterOffset()

getColumnNumber

public int getColumnNumber()

getEncoding

public String getEncoding()

getExpandedSystemId

public String getExpandedSystemId()

getLineNumber

public int getLineNumber()

getLiteralSystemId

public String getLiteralSystemId()

getXMLVersion

public String getXMLVersion()

isEncodingExternallySpecified

public boolean isEncodingExternallySpecified()
Returns whether the encoding of this entity was externally specified. *

isExternal

public final boolean isExternal()
Returns true if this is an external entity.

isUnparsed

public final boolean isUnparsed()
Returns true if this is an unparsed entity.

setEncodingExternallySpecified

public void setEncodingExternallySpecified(boolean value)
Sets whether the encoding of this entity was externally specified. *

setReader

public void setReader(InputStream stream, String encoding, Boolean isBigEndian)

toString

public String toString()
Returns a string representation of this object.
Copyright B) 1999-2005 Apache XML Project. All Rights Reserved.