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 TypeFieldDescriptionint
Base character offset for computing absolute character offset.char[]
Character buffer.int
Column number.int
Count of characters in buffer.Auto-detected encoding.org.apache.xerces.xni.XMLResourceIdentifier
entity location informationboolean
int
Line number.boolean
True if in a literal.boolean
int
Position in character buffer.Reader.int
Start 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 TypeMethodDescriptionint
int
int
boolean
Returns whether the encoding of this entity was externally specified.final boolean
Returns true if this is an external entity.final boolean
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) 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:
isExternal
in classXMLEntityManager.Entity
-
isUnparsed
public final boolean isUnparsed()Returns true if this is an unparsed entity.- Specified by:
isUnparsed
in 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.
-