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 |
mInputLast
Length of the buffer, if buffer used
|
mEntityDepth, mFromEntity, mParent, mScopeId| Modifier | Constructor and Description |
|---|---|
protected |
BaseInputSource(WstxInputSource parent,
String fromEntity,
String publicId,
SystemId systemId) |
| 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) |
String |
getPublicId() |
URL |
getSource() |
String |
getSystemId() |
void |
overrideSource(URL src)
Method that can be called to override originally defined source.
|
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, getEntityDepth, getEntityId, getParent, getScopeId, initInputLocation, isOrIsExpandedFrom, toStringprotected char[] mBuffer
protected int mInputLast
protected BaseInputSource(WstxInputSource parent, String fromEntity, String publicId, SystemId systemId)
public void overrideSource(URL src)
WstxInputSourceoverrideSource in class WstxInputSourcesrc - New base URL to set; may be null.public abstract boolean fromInternalEntity()
fromInternalEntity in class WstxInputSourcepublic URL getSource() throws IOException
getSource in class WstxInputSourceIOExceptionpublic String getPublicId()
getPublicId in class WstxInputSourcepublic String getSystemId()
getSystemId in class WstxInputSourceprotected abstract void doInitInputLocation(WstxInputData reader)
doInitInputLocation in class WstxInputSourcepublic abstract int readInto(WstxInputData reader) throws IOException, XMLStreamException
WstxInputSourcereadInto in class WstxInputSourceIOExceptionXMLStreamExceptionpublic abstract boolean readMore(WstxInputData reader, int minAmount) throws IOException, XMLStreamException
WstxInputSourcereadMore in class WstxInputSourceIOExceptionXMLStreamExceptionpublic void saveContext(WstxInputData reader)
WstxInputSourcesaveContext in class WstxInputSourcepublic void restoreContext(WstxInputData reader)
WstxInputSourcerestoreContext in class WstxInputSourcepublic abstract void close()
throws IOException
WstxInputSourceclose in class WstxInputSourceIOExceptionprotected final WstxInputLocation getLocation()
getLocation in class WstxInputSourcepublic final WstxInputLocation getLocation(long total, int row, int col)
getLocation in class WstxInputSourceCopyright © 2022 FasterXML. All rights reserved.