public final class CharArraySource extends BaseInputSource
mBuffer, mInputLastmEntityDepth, mFromEntity, mParent, mScopeId| Modifier | Constructor and Description |
|---|---|
protected |
CharArraySource(WstxInputSource parent,
String fromEntity,
char[] chars,
int offset,
int len,
Location loc,
SystemId sysId) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Method reader calls for this input source when it has encountered
EOF.
|
void |
closeCompletely()
Method reader MAY call to force full closing of the underlying
input stream(s)/reader(s).
|
protected void |
doInitInputLocation(WstxInputData reader)
Unlike with reader source, we won't start from beginning of a file,
but usually from somewhere in the middle...
|
boolean |
fromInternalEntity()
This is a hard-coded assumption, but yes, for now this source is
only created from internal entities.
|
int |
readInto(WstxInputData reader)
Method called to read at least one more char from input source, and
update input data appropriately.
|
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.
|
getLocation, getLocation, getPublicId, getSource, getSystemId, overrideSource, restoreContext, saveContextgetEntityDepth, getEntityId, getParent, getScopeId, initInputLocation, isOrIsExpandedFrom, toStringprotected CharArraySource(WstxInputSource parent, String fromEntity, char[] chars, int offset, int len, Location loc, SystemId sysId)
public boolean fromInternalEntity()
fromInternalEntity in class BaseInputSourceprotected void doInitInputLocation(WstxInputData reader)
doInitInputLocation in class BaseInputSourcepublic int readInto(WstxInputData reader)
WstxInputSourcereadInto in class BaseInputSourcepublic boolean readMore(WstxInputData reader, int minAmount)
WstxInputSourcereadMore in class BaseInputSourcepublic void close()
WstxInputSourceclose in class BaseInputSourcepublic void closeCompletely()
WstxInputSourcecloseCompletely in class WstxInputSourceCopyright © 2018 FasterXML. All rights reserved.