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
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
FieldsModifier and TypeFieldDescriptionintBase character offset for computing absolute character offset.char[]Character buffer.intColumn number.intCount of characters in buffer.Auto-detected encoding.org.apache.xerces.xni.XMLResourceIdentifierentity location informationbooleanintLine number.booleanTrue if in a literal.booleanintPosition in character buffer.Reader.intStart position in character buffer.Input stream.XML version.Fields inherited from class org.apache.xerces.impl.XMLEntityManager.Entity
inExternalSubset, name -
Constructor Summary
ConstructorsConstructorDescriptionScannedEntity(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
Modifier and TypeMethodDescriptionintintintbooleanReturns whether the encoding of this entity was externally specified.final booleanReturns true if this is an external entity.final booleanReturns 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) toString()Returns a string representation of this object.Methods inherited from class org.apache.xerces.impl.XMLEntityManager.Entity
clear, isEntityDeclInExternalSubset, setValues
-
Field Details
-
stream
Input stream. -
reader
Reader. -
entityLocation
public org.apache.xerces.xni.XMLResourceIdentifier entityLocationentity location information -
lineNumber
public int lineNumberLine number. -
columnNumber
public int columnNumberColumn number. -
encoding
Auto-detected encoding. -
xmlVersion
XML version. -
literal
public boolean literalTrue if in a literal. -
isExternal
public boolean isExternal -
ch
public char[] chCharacter buffer. -
position
public int positionPosition in character buffer. -
baseCharOffset
public int baseCharOffsetBase character offset for computing absolute character offset. -
startPosition
public int startPositionStart position in character buffer. -
count
public int countCount of characters in buffer. -
mayReadChunks
public boolean mayReadChunks
-
-
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
-
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
- Throws:
IOException
-
getExpandedSystemId
-
getLiteralSystemId
-
getLineNumber
public int getLineNumber() -
getColumnNumber
public int getColumnNumber() -
getCharacterOffset
public int getCharacterOffset() -
getEncoding
-
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
Returns a string representation of this object.
-