public abstract class BaseInputSource extends WstxInputSource
WstxInputSource implementations Woodstox includes need.| Modifier and Type | Field and Description |
|---|---|
protected char[] |
mBuffer
Input buffer this input source uses, if any.
|
protected int |
mInputLen
Length of the buffer, if buffer used
|
mParent| Modifier | Constructor and Description |
|---|---|
protected |
BaseInputSource(WstxInputSource parent,
java.lang.String fromEntity,
java.lang.String publicId,
java.lang.String systemId,
java.net.URL src) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
close()
Method reader calls for this input source when it has encountered
EOF.
|
protected abstract void |
doInitInputLocation(WstxInputData reader) |
abstract boolean |
fromInternalEntity() |
protected WstxInputLocation |
getLocation()
This method only gets called by the 'child' input source (for example,
contents of an expanded entity), to get the enclosing context location.
|
WstxInputLocation |
getLocation(long total,
int row,
int col) |
java.lang.String |
getPublicId() |
java.net.URL |
getSource() |
java.lang.String |
getSystemId() |
abstract int |
readInto(WstxInputData reader)
Method called to read at least one more char from input source, and
update input data appropriately.
|
abstract boolean |
readMore(WstxInputData reader,
int minAmount)
Method called by reader when it has to have at least specified number
of consequtive input characters in its buffer, and it currently does
not have.
|
void |
restoreContext(WstxInputData reader)
Method Reader calls when this input source is resumed as the
current source.
|
void |
saveContext(WstxInputData reader)
Method Reader calls when this input source is being stored, when
a nested input source gets used instead (due to entity expansion).
|
closeCompletely, getEntityId, getParent, getScopeId, initInputLocation, isOrIsExpandedFrom, toStringprotected char[] mBuffer
protected int mInputLen
protected BaseInputSource(WstxInputSource parent, java.lang.String fromEntity, java.lang.String publicId, java.lang.String systemId, java.net.URL src)
public abstract boolean fromInternalEntity()
fromInternalEntity in class WstxInputSourcepublic java.net.URL getSource()
getSource in class WstxInputSourcepublic java.lang.String getPublicId()
getPublicId in class WstxInputSourcepublic java.lang.String getSystemId()
getSystemId in class WstxInputSourceprotected abstract void doInitInputLocation(WstxInputData reader)
doInitInputLocation in class WstxInputSourcepublic abstract int readInto(WstxInputData reader) throws java.io.IOException
WstxInputSourcereadInto in class WstxInputSourcejava.io.IOExceptionpublic abstract boolean readMore(WstxInputData reader, int minAmount) throws java.io.IOException
WstxInputSourcereadMore in class WstxInputSourcejava.io.IOExceptionpublic void saveContext(WstxInputData reader)
WstxInputSourcesaveContext in class WstxInputSourcepublic void restoreContext(WstxInputData reader)
WstxInputSourcerestoreContext in class WstxInputSourcepublic abstract void close()
throws java.io.IOException
WstxInputSourceclose in class WstxInputSourcejava.io.IOExceptionprotected final WstxInputLocation getLocation()
getLocation in class WstxInputSourcepublic final WstxInputLocation getLocation(long total, int row, int col)
getLocation in class WstxInputSource