Class XMLEntityManager.ScannedEntity
- java.lang.Object
-
- org.smooks.engine.delivery.sax.ng.org.apache.xerces.impl.XMLEntityManager.Entity
-
- org.smooks.engine.delivery.sax.ng.org.apache.xerces.impl.XMLEntityManager.ScannedEntity
-
- Enclosing class:
- XMLEntityManager
public class XMLEntityManager.ScannedEntity extends XMLEntityManager.Entity
Entity state.- Author:
- Andy Clark, IBM
-
-
Field Summary
Fields Modifier and Type Field Description 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.XMLResourceIdentifier
entityLocation
entity location informationboolean
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.smooks.engine.delivery.sax.ng.org.apache.xerces.impl.XMLEntityManager.Entity
inExternalSubset, name
-
-
Constructor Summary
Constructors Constructor Description ScannedEntity(String name, XMLResourceIdentifier entityLocation, InputStream stream, Reader reader, byte[] byteBuffer, 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 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.smooks.engine.delivery.sax.ng.org.apache.xerces.impl.XMLEntityManager.Entity
clear, isEntityDeclInExternalSubset, setValues
-
-
-
-
Field Detail
-
stream
public InputStream stream
Input stream.
-
reader
public Reader reader
Reader.
-
entityLocation
public XMLResourceIdentifier entityLocation
entity location information
-
lineNumber
public int lineNumber
Line number.
-
columnNumber
public int columnNumber
Column number.
-
encoding
public String encoding
Auto-detected encoding.
-
xmlVersion
public 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(String name, XMLResourceIdentifier entityLocation, InputStream stream, Reader reader, byte[] byteBuffer, 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:
isExternal
in classXMLEntityManager.Entity
-
isUnparsed
public final boolean isUnparsed()
Returns true if this is an unparsed entity.- Specified by:
isUnparsed
in classXMLEntityManager.Entity
-
setReader
public void setReader(InputStream stream, String encoding, Boolean isBigEndian) throws IOException
- Throws:
IOException
-
getExpandedSystemId
public String getExpandedSystemId()
-
getLiteralSystemId
public String getLiteralSystemId()
-
getLineNumber
public int getLineNumber()
-
getColumnNumber
public int getColumnNumber()
-
getCharacterOffset
public int getCharacterOffset()
-
getEncoding
public String getEncoding()
-
getXMLVersion
public 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.
-
-