Package org.apache.xerces.impl
Class XMLEntityManager.ScannedEntity
- java.lang.Object
-
- org.apache.xerces.impl.XMLEntityManager.Entity
-
- org.apache.xerces.impl.XMLEntityManager.ScannedEntity
-
- Enclosing class:
- XMLEntityManager
public class XMLEntityManager.ScannedEntity extends XMLEntityManager.Entity
Entity state.INTERNAL:
- Usage of this class is not supported. It may be altered or removed at any time.
- Author:
- Andy Clark, IBM
-
-
Field Summary
Fields Modifier and Type Field Description intbaseCharOffsetBase character offset for computing absolute character offset.char[]chCharacter buffer.intcolumnNumberColumn number.intcountCount of characters in buffer.java.lang.StringencodingAuto-detected encoding.org.apache.xerces.xni.XMLResourceIdentifierentityLocationentity location informationbooleanisExternalintlineNumberLine number.booleanliteralTrue if in a literal.booleanmayReadChunksintpositionPosition in character buffer.java.io.ReaderreaderReader.intstartPositionStart position in character buffer.java.io.InputStreamstreamInput stream.java.lang.StringxmlVersionXML version.-
Fields inherited from class org.apache.xerces.impl.XMLEntityManager.Entity
inExternalSubset, name
-
-
Constructor Summary
Constructors Constructor Description ScannedEntity(java.lang.String name, org.apache.xerces.xni.XMLResourceIdentifier entityLocation, java.io.InputStream stream, java.io.Reader reader, byte[] byteBuffer, java.lang.String encoding, boolean literal, boolean mayReadChunks, boolean isExternal)Constructs a scanned entity.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCharacterOffset()intgetColumnNumber()java.lang.StringgetEncoding()java.lang.StringgetExpandedSystemId()intgetLineNumber()java.lang.StringgetLiteralSystemId()java.lang.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(java.io.InputStream stream, java.lang.String encoding, java.lang.Boolean isBigEndian)java.lang.StringtoString()Returns a string representation of this object.-
Methods inherited from class org.apache.xerces.impl.XMLEntityManager.Entity
clear, isEntityDeclInExternalSubset, setValues
-
-
-
-
Field Detail
-
stream
public java.io.InputStream stream
Input stream.
-
reader
public java.io.Reader reader
Reader.
-
entityLocation
public org.apache.xerces.xni.XMLResourceIdentifier entityLocation
entity location information
-
lineNumber
public int lineNumber
Line number.
-
columnNumber
public int columnNumber
Column number.
-
encoding
public java.lang.String encoding
Auto-detected encoding.
-
xmlVersion
public java.lang.String xmlVersion
XML version.
-
literal
public boolean literal
True if in a literal.
-
isExternal
public boolean isExternal
-
ch
public char[] ch
Character buffer.
-
position
public int position
Position in character buffer.
-
baseCharOffset
public int baseCharOffset
Base character offset for computing absolute character offset.
-
startPosition
public int startPosition
Start position in character buffer.
-
count
public int count
Count of characters in buffer.
-
mayReadChunks
public boolean mayReadChunks
-
-
Constructor Detail
-
ScannedEntity
public ScannedEntity(java.lang.String name, org.apache.xerces.xni.XMLResourceIdentifier entityLocation, java.io.InputStream stream, java.io.Reader reader, byte[] byteBuffer, java.lang.String encoding, boolean literal, boolean mayReadChunks, boolean isExternal)Constructs a scanned entity.
-
-
Method Detail
-
isExternal
public final boolean isExternal()
Returns true if this is an external entity.- Specified by:
isExternalin classXMLEntityManager.Entity
-
isUnparsed
public final boolean isUnparsed()
Returns true if this is an unparsed entity.- Specified by:
isUnparsedin classXMLEntityManager.Entity
-
setReader
public void setReader(java.io.InputStream stream, java.lang.String encoding, java.lang.Boolean isBigEndian) throws java.io.IOException- Throws:
java.io.IOException
-
getExpandedSystemId
public java.lang.String getExpandedSystemId()
-
getLiteralSystemId
public java.lang.String getLiteralSystemId()
-
getLineNumber
public int getLineNumber()
-
getColumnNumber
public int getColumnNumber()
-
getCharacterOffset
public int getCharacterOffset()
-
getEncoding
public java.lang.String getEncoding()
-
getXMLVersion
public java.lang.String getXMLVersion()
-
isEncodingExternallySpecified
public boolean isEncodingExternallySpecified()
Returns whether the encoding of this entity was externally specified.
-
setEncodingExternallySpecified
public void setEncodingExternallySpecified(boolean value)
Sets whether the encoding of this entity was externally specified.
-
toString
public java.lang.String toString()
Returns a string representation of this object.- Overrides:
toStringin classjava.lang.Object
-
-