| Modifier and Type | Field and Description |
|---|---|
| pack-priv final ReaderConfig | |
| pack-priv final boolean | mDoRealClose
If true, will close the underlying Reader when this source is closed; if false will leave it open. |
| pack-priv int | |
| pack-priv int | |
| pack-priv int | |
| protected Reader | mReader
Underlying Reader to read character data from |
| Access | Constructor and Description |
|---|---|
| public | ReaderSource(ReaderConfig cfg, WstxInputSource parent, String fromEntity, String pubId, SystemId sysId, Reader r, boolean realClose)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Implements abstract com. Method reader calls for this input source when it has encountered EOF. |
| private void | |
| 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. Input location is easy to set, as we'll start from the beginning of a File. |
| public boolean | fromInternalEntity()
Implements abstract com. This is a hard-coded assumption, for now this source is only created from external 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. |
| public void | setInputOffsets(int proc, int row, int rowStart)
Method called to change the default offsets this source has. |
| mConfig | back to summary |
|---|---|
| pack-priv final ReaderConfig mConfig | |
| mDoRealClose | back to summary |
|---|---|
| pack-priv final boolean mDoRealClose If true, will close the underlying Reader when this source is closed; if false will leave it open. | |
| mInputProcessed | back to summary |
|---|---|
| pack-priv int mInputProcessed | |
| mInputRow | back to summary |
|---|---|
| pack-priv int mInputRow | |
| mInputRowStart | back to summary |
|---|---|
| pack-priv int mInputRowStart | |
| mReader | back to summary |
|---|---|
| protected Reader mReader Underlying Reader to read character data from | |
| ReaderSource | back to summary |
|---|---|
| public ReaderSource(ReaderConfig cfg, WstxInputSource parent, String fromEntity, String pubId, SystemId sysId, Reader r, boolean realClose) | |
| close | back to summary |
|---|---|
| public 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
| |
| closeAndRecycle | back to summary |
|---|---|
| private void closeAndRecycle(boolean fullClose) throws IOException | |
| closeCompletely | back to summary |
|---|---|
| public void closeCompletely() throws IOException 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. Input location is easy to set, as we'll start from the beginning of a File.
| |
| fromInternalEntity | back to summary |
|---|---|
| public boolean fromInternalEntity() Implements abstract com. This is a hard-coded assumption, for now this source is only created from external entities
| |
| readInto | back to summary |
|---|---|
| public 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 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).
| |
| setInputOffsets | back to summary |
|---|---|
| public void setInputOffsets(int proc, int row, int rowStart) Method called to change the default offsets this source has. Generally done when the underlying Reader had been partially read earlier (like reading the xml declaration before starting real parsing). | |