public class XMLEntityManager.ScannedEntity extends XMLEntityManager.Entity
Modifier and Type | Field and 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 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.
|
inExternalSubset, name
Constructor and Description |
---|
ScannedEntity(String name,
XMLResourceIdentifier entityLocation,
InputStream stream,
Reader reader,
byte[] byteBuffer,
String encoding,
boolean literal,
boolean mayReadChunks,
boolean isExternal)
Constructs a scanned entity.
|
Modifier and Type | Method and 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.
|
clear, isEntityDeclInExternalSubset, setValues
public InputStream stream
public Reader reader
public XMLResourceIdentifier entityLocation
public int lineNumber
public int columnNumber
public String encoding
public String xmlVersion
public boolean literal
public boolean isExternal
public char[] ch
public int position
public int baseCharOffset
public int startPosition
public int count
public boolean mayReadChunks
public ScannedEntity(String name, XMLResourceIdentifier entityLocation, InputStream stream, Reader reader, byte[] byteBuffer, String encoding, boolean literal, boolean mayReadChunks, boolean isExternal)
public final boolean isExternal()
isExternal
in class XMLEntityManager.Entity
public final boolean isUnparsed()
isUnparsed
in class XMLEntityManager.Entity
public void setReader(InputStream stream, String encoding, Boolean isBigEndian) throws IOException
IOException
public String getExpandedSystemId()
public String getLiteralSystemId()
public int getLineNumber()
public int getColumnNumber()
public int getCharacterOffset()
public String getEncoding()
public String getXMLVersion()
public boolean isEncodingExternallySpecified()
public void setEncodingExternallySpecified(boolean value)
Copyright © 2017 JBoss by Red Hat. All rights reserved.