| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Location | |
| pack-priv int |
| Access | 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 |
|---|---|
| public void | close()
Implements abstract com. Method reader calls for this input source when it has encountered EOF. |
| public void | closeCompletely()
Implements abstract com. Method reader MAY call to force full closing of the underlying input stream(s)/reader(s). |
| protected void | doInitInputLocation(WstxInputData reader)
Implements abstract com. Unlike with reader source, we won't start from beginning of a file, but usually from somewhere in the middle... |
| public boolean | fromInternalEntity()
Implements abstract com. This is a hard-coded assumption, but yes, for now this source is only created from internal entities. |
| public int | readInto(WstxInputData reader)
Implements abstract com. Method called to read at least one more char from input source, and update input data appropriately. |
| public boolean | readMore(WstxInputData reader, int minAmount)
Implements abstract com. 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. |
| mContentStart | back to summary |
|---|---|
| pack-priv final Location mContentStart | |
| mOffset | back to summary |
|---|---|
| pack-priv int mOffset | |
| CharArraySource | back to summary |
|---|---|
| protected CharArraySource(WstxInputSource parent, String fromEntity, char[] chars, int offset, int len, Location loc, SystemId sysId) | |
| close | back to summary |
|---|---|
| public void close() Implements abstract com. Doc from com. Method reader calls for this input source when it has encountered EOF. This may or may not close the underlying stream/reader; what happens depends on configuration
| |
| closeCompletely | back to summary |
|---|---|
| public void closeCompletely() Implements abstract com. Doc from com. Method reader MAY call to force full closing of the underlying input stream(s)/reader(s). No checks are done regarding configuration, but input source object is to deal gracefully with multiple calls (ie. it's not an error for reader to call this more than once).
| |
| doInitInputLocation | back to summary |
|---|---|
| protected void doInitInputLocation(WstxInputData reader) Implements abstract com. Unlike with reader source, we won't start from beginning of a file, but usually from somewhere in the middle...
| |
| fromInternalEntity | back to summary |
|---|---|
| public boolean fromInternalEntity() Implements abstract com. This is a hard-coded assumption, but yes, for now this source is only created from internal entities.
| |
| readInto | back to summary |
|---|---|
| public int readInto(WstxInputData reader) Implements abstract com. Doc from com. Method called to read at least one more char from input source, and update input data appropriately.
| |
| readMore | back to summary |
|---|---|
| public boolean readMore(WstxInputData reader, int minAmount) Implements abstract com. Doc from com. 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. If so, it asks input source to do whatever it has to do to try to get more data, if possible (including moving stuff in input buffer if necessary and possible).
| |