Currently this Reader is only used as the main-level Reader, to allow for branching of internal DTD subset to a text buffer if necessary.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv TextBuffer | |
| pack-priv int | |
| pack-priv boolean | |
| pack-priv boolean | mGotCR
Flag that indicates that last char from previous buffer was '\r', and that following '\n' (if there is one) needs to be ignored. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public void | |
| public int | readInto(WstxInputData reader)
Overrides 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)
Overrides 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 |
| mBranchBuffer | back to summary |
|---|---|
| pack-priv TextBuffer mBranchBuffer | |
| mBranchStartOffset | back to summary |
|---|---|
| pack-priv int mBranchStartOffset | |
| mConvertLFs | back to summary |
|---|---|
| pack-priv boolean mConvertLFs | |
| mGotCR | back to summary |
|---|---|
| pack-priv boolean mGotCR Flag that indicates that last char from previous buffer was '\r', and that following '\n' (if there is one) needs to be ignored. | |
| BranchingReaderSource | back to summary |
|---|---|
| public BranchingReaderSource(ReaderConfig cfg, String pubId, SystemId sysId, Reader r, boolean realClose) | |
| appendBranched | back to summary |
|---|---|
| private void appendBranched(int startOffset, int pastEnd) | |
| endBranch | back to summary |
|---|---|
| public void endBranch(int endOffset) Currently this input source does not implement branching | |
| readInto | back to summary |
|---|---|
| public int readInto(WstxInputData reader) throws IOException, XMLStreamException Overrides 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 Overrides 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).
| |
| startBranch | back to summary |
|---|---|
| public void startBranch(TextBuffer tb, int startOffset, boolean convertLFs) | |