org.apache.xerces.impl

Class XMLEntityManager.ScannedEntity

Enclosing Class:
XMLEntityManager

public class XMLEntityManager.ScannedEntity
extends XMLEntityManager.Entity

Entity state.
Author:
Andy Clark, IBM

Field Summary

int
baseCharOffset
Base character offset for computing absolute character offset.
char[]
ch
Character buffer.
int
columnNumber
Column number.
int
count
Count of characters in buffer.
String
encoding
Auto-detected encoding.
org.apache.xerces.xni.XMLResourceIdentifier
entityLocation
entity location information
boolean
isExternal
int
lineNumber
Line number.
boolean
literal
True if in a literal.
boolean
mayReadChunks
int
position
Position in character buffer.
Reader
reader
Reader.
int
startPosition
Start position in character buffer.
InputStream
stream
Input stream.
String
xmlVersion
XML version.

Fields inherited from class org.apache.xerces.impl.XMLEntityManager.Entity

inExternalSubset, name

Constructor Summary

ScannedEntity(String name, org.apache.xerces.xni.XMLResourceIdentifier entityLocation, InputStream stream, Reader reader, byte[] byteBuffer, String encoding, boolean literal, boolean mayReadChunks, boolean isExternal)
Constructs a scanned entity.

Method Summary

int
getCharacterOffset()
int
getColumnNumber()
String
getEncoding()
String
getExpandedSystemId()
int
getLineNumber()
String
getLiteralSystemId()
String
getXMLVersion()
boolean
isEncodingExternallySpecified()
Returns whether the encoding of this entity was externally specified.
boolean
isExternal()
Returns true if this is an external entity.
boolean
isUnparsed()
Returns true if this is an unparsed entity.
void
setEncodingExternallySpecified(boolean value)
Sets whether the encoding of this entity was externally specified.
void
setReader(InputStream stream, String encoding, Boolean isBigEndian)
String
toString()
Returns a string representation of this object.

Methods inherited from class org.apache.xerces.impl.XMLEntityManager.Entity

clear, isEntityDeclInExternalSubset, isExternal, isUnparsed, setValues

Field Details

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 org.apache.xerces.xni.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 Details

ScannedEntity

public ScannedEntity(String name,
                     org.apache.xerces.xni.XMLResourceIdentifier entityLocation,
                     InputStream stream,
                     Reader reader,
                     byte[] byteBuffer,
                     String encoding,
                     boolean literal,
                     boolean mayReadChunks,
                     boolean isExternal)
Constructs a scanned entity.

Method Details

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.
Overrides:
isExternal in interface XMLEntityManager.Entity

isUnparsed

public final boolean isUnparsed()
Returns true if this is an unparsed entity.
Overrides:
isUnparsed in interface XMLEntityManager.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)
            throws IOException

toString

public String toString()
Returns a string representation of this object.

Copyright B) 1999-2006 The Apache Software Foundation. All Rights Reserved.