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 |
| pack-priv transient WstxInputLocation | |
| pack-priv final String | |
| pack-priv long | mSavedInputProcessed
Number of characters read from the current input source prior to the current buffer |
| pack-priv int | |
| pack-priv int | |
| pack-priv int | |
| pack-priv SystemId | mSystemId
URL for/from systemId points to original source of input, if known; null if not known (source constructed with just a stream or reader). |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public abstract void | close()
Implements abstract com. Method reader calls for this input source when it has encountered EOF. |
| protected abstract void | doInitInputLocation(WstxInputData reader)
Implements abstract com.
|
| public abstract boolean | |
| protected final WstxInputLocation | getLocation()
Implements abstract com. This method only gets called by the 'child' input source (for example, contents of an expanded entity), to get the enclosing context location. |
| public final WstxInputLocation | getLocation(long total, int row, int col)
Implements abstract com.
|
| public String | |
| public URL | |
| public String | |
| public void | overrideSource(URL
New base URL to set; may be null. src)Implements abstract com. Method that can be called to override originally defined source. |
| public abstract 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 abstract 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. |
| public void | restoreContext(WstxInputData reader)
Implements abstract com. Method Reader calls when this input source is resumed as the current source. |
| public void | saveContext(WstxInputData reader)
Implements abstract com. Method Reader calls when this input source is being stored, when a nested input source gets used instead (due to entity expansion). |
| mBuffer | back to summary |
|---|---|
| protected char[] mBuffer Input buffer this input source uses, if any. | |
| mInputLast | back to summary |
|---|---|
| protected int mInputLast Length of the buffer, if buffer used | |
| mParentLocation | back to summary |
|---|---|
| pack-priv transient WstxInputLocation mParentLocation | |
| mPublicId | back to summary |
|---|---|
| pack-priv final String mPublicId | |
| mSavedInputProcessed | back to summary |
|---|---|
| pack-priv long mSavedInputProcessed Number of characters read from the current input source prior to the current buffer | |
| mSavedInputPtr | back to summary |
|---|---|
| pack-priv int mSavedInputPtr | |
| mSavedInputRow | back to summary |
|---|---|
| pack-priv int mSavedInputRow | |
| mSavedInputRowStart | back to summary |
|---|---|
| pack-priv int mSavedInputRowStart | |
| mSystemId | back to summary |
|---|---|
| pack-priv SystemId mSystemId URL for/from systemId points to original source of input, if known; null if not known (source constructed with just a stream or reader). Used for resolving references from the input that's read from this source. Can be overridden by reader; done if P_BASE_URL is changed on stream reader for which this input source is the currently active input source. | |
| BaseInputSource | back to summary |
|---|---|
| protected BaseInputSource(WstxInputSource parent, String fromEntity, String publicId, SystemId systemId) | |
| close | back to summary |
|---|---|
| public abstract void close() throws IOException 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
| |
| doInitInputLocation | back to summary |
|---|---|
| protected abstract void doInitInputLocation(WstxInputData reader) Implements abstract com.
| |
| fromInternalEntity | back to summary |
|---|---|
| public abstract boolean fromInternalEntity() Implements abstract com.
| |
| getLocation | back to summary |
|---|---|
| protected final WstxInputLocation getLocation() Implements abstract com. This method only gets called by the 'child' input source (for example, contents of an expanded entity), to get the enclosing context location.
| |
| getLocation | back to summary |
|---|---|
| public final WstxInputLocation getLocation(long total, int row, int col) Implements abstract com.
| |
| getPublicId | back to summary |
|---|---|
| public String getPublicId() Implements abstract com.
| |
| getSource | back to summary |
|---|---|
| public URL getSource() throws IOException Implements abstract com.
| |
| getSystemId | back to summary |
|---|---|
| public String getSystemId() Implements abstract com.
| |
| overrideSource | back to summary |
|---|---|
| public void overrideSource(URL src) Implements abstract com. Doc from com. Method that can be called to override originally defined source. | |
| readInto | back to summary |
|---|---|
| public abstract int readInto(WstxInputData reader) throws IOException, XMLStreamException 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 abstract boolean readMore(WstxInputData reader, int minAmount) throws IOException, XMLStreamException 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).
| |
| restoreContext | back to summary |
|---|---|
| public void restoreContext(WstxInputData reader) Implements abstract com. Doc from com. Method Reader calls when this input source is resumed as the current source. Needs to update Reader's input location data used for error messages etc.
| |
| saveContext | back to summary |
|---|---|
| public void saveContext(WstxInputData reader) Implements abstract com. Doc from com. Method Reader calls when this input source is being stored, when a nested input source gets used instead (due to entity expansion). Needs to get location info from Reader and store it in this Object.
| |