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.
mReadermBuffer, mInputLastmEntityDepth, mFromEntity, mParent, mScopeId| Constructor and Description |
|---|
BranchingReaderSource(ReaderConfig cfg,
String pubId,
SystemId sysId,
Reader r,
boolean realClose) |
| Modifier and Type | Method and Description |
|---|---|
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, toStringpublic BranchingReaderSource(ReaderConfig cfg, String pubId, SystemId sysId, Reader r, boolean realClose)
public int readInto(WstxInputData reader) throws IOException, XMLStreamException
WstxInputSourcereadInto in class ReaderSourceIOExceptionXMLStreamExceptionpublic boolean readMore(WstxInputData reader, int minAmount) throws IOException, XMLStreamException
WstxInputSourcereadMore in class ReaderSourceIOExceptionXMLStreamExceptionpublic void startBranch(TextBuffer tb, int startOffset, boolean convertLFs)
public void endBranch(int endOffset)
Copyright © 2018 FasterXML. All rights reserved.