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.
mReader
mBuffer, mInputLast
mEntityDepth, 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, setInputOffsets
getLocation, getLocation, getPublicId, getSource, getSystemId, overrideSource, restoreContext, saveContext
getEntityDepth, getEntityId, getParent, getScopeId, initInputLocation, isOrIsExpandedFrom, toString
public BranchingReaderSource(ReaderConfig cfg, String pubId, SystemId sysId, Reader r, boolean realClose)
public int readInto(WstxInputData reader) throws IOException, XMLStreamException
WstxInputSource
readInto
in class ReaderSource
IOException
XMLStreamException
public boolean readMore(WstxInputData reader, int minAmount) throws IOException, XMLStreamException
WstxInputSource
readMore
in class ReaderSource
IOException
XMLStreamException
public void startBranch(TextBuffer tb, int startOffset, boolean convertLFs)
public void endBranch(int endOffset)
Copyright © 2018 FasterXML. All rights reserved.