public final class BranchingReaderSource extends ReaderSource
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 |
|---|---|
(package private) TextBuffer |
mBranchBuffer |
(package private) int |
mBranchStartOffset |
(package private) boolean |
mConvertLFs |
(package private) 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.
|
mConfig, mDoRealClose, mInputProcessed, mInputRow, mInputRowStart, mReadermBuffer, mInputLast, mParentLocation, mPublicId, mSavedInputProcessed, mSavedInputPtr, mSavedInputRow, mSavedInputRowStart, mSystemIdmEntityDepth, mFromEntity, mParent, mScopeId| Constructor and Description |
|---|
BranchingReaderSource(ReaderConfig cfg,
java.lang.String pubId,
SystemId sysId,
java.io.Reader r,
boolean realClose) |
| Modifier and Type | Method and Description |
|---|---|
private void |
appendBranched(int startOffset,
int pastEnd) |
void |
endBranch(int endOffset)
Currently this input source does not implement branching
|
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.
|
void |
startBranch(TextBuffer tb,
int startOffset,
boolean convertLFs) |
close, closeCompletely, doInitInputLocation, fromInternalEntity, setInputOffsetsgetLocation, getLocation, getPublicId, getSource, getSystemId, overrideSource, restoreContext, saveContextgetEntityDepth, getEntityId, getParent, getScopeId, initInputLocation, isOrIsExpandedFrom, toStringTextBuffer mBranchBuffer
int mBranchStartOffset
boolean mConvertLFs
boolean mGotCR
public BranchingReaderSource(ReaderConfig cfg, java.lang.String pubId, SystemId sysId, java.io.Reader r, boolean realClose)
public int readInto(WstxInputData reader) throws java.io.IOException, javax.xml.stream.XMLStreamException
WstxInputSourcereadInto in class ReaderSourcejava.io.IOExceptionjavax.xml.stream.XMLStreamExceptionpublic boolean readMore(WstxInputData reader, int minAmount) throws java.io.IOException, javax.xml.stream.XMLStreamException
WstxInputSourcereadMore in class ReaderSourcejava.io.IOExceptionjavax.xml.stream.XMLStreamExceptionpublic void startBranch(TextBuffer tb, int startOffset, boolean convertLFs)
public void endBranch(int endOffset)
private void appendBranched(int startOffset,
int pastEnd)