|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ctc.wstx.io.WstxInputSource
com.ctc.wstx.io.BaseInputSource
com.ctc.wstx.io.ReaderSource
public class ReaderSource
Input source that reads input via a Reader.
Field Summary |
---|
Fields inherited from class com.ctc.wstx.io.BaseInputSource |
---|
mBuffer, mInputLast, mSource |
Fields inherited from class com.ctc.wstx.io.WstxInputSource |
---|
mFromEntity, mParent, mScopeId |
Constructor Summary | |
---|---|
ReaderSource(ReaderConfig cfg,
WstxInputSource parent,
String fromEntity,
String pubId,
String sysId,
URL src,
Reader r,
boolean realClose)
|
Method Summary | |
---|---|
void |
close()
Method reader calls for this input source when it has encountered EOF. |
void |
closeCompletely()
Method reader MAY call to force full closing of the underlying input stream(s)/reader(s). |
protected void |
doInitInputLocation(WstxInputData reader)
Input location is easy to set, as we'll start from the beginning of a File. |
boolean |
fromInternalEntity()
This is a hard-coded assumption, for now this source is only created from external entities |
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 |
setInputOffsets(int proc,
int row,
int rowStart)
Method called to change the default offsets this source has. |
Methods inherited from class com.ctc.wstx.io.BaseInputSource |
---|
getLocation, getLocation, getPublicId, getSource, getSystemId, overrideSource, restoreContext, saveContext |
Methods inherited from class com.ctc.wstx.io.WstxInputSource |
---|
getEntityId, getParent, getScopeId, initInputLocation, isOrIsExpandedFrom, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ReaderSource(ReaderConfig cfg, WstxInputSource parent, String fromEntity, String pubId, String sysId, URL src, Reader r, boolean realClose)
Method Detail |
---|
public void setInputOffsets(int proc, int row, int rowStart)
protected void doInitInputLocation(WstxInputData reader)
doInitInputLocation
in class BaseInputSource
public boolean fromInternalEntity()
fromInternalEntity
in class BaseInputSource
public int readInto(WstxInputData reader) throws IOException, XMLStreamException
WstxInputSource
readInto
in class BaseInputSource
IOException
XMLStreamException
public boolean readMore(WstxInputData reader, int minAmount) throws IOException, XMLStreamException
WstxInputSource
readMore
in class BaseInputSource
IOException
XMLStreamException
public void close() throws IOException
WstxInputSource
close
in class BaseInputSource
IOException
public void closeCompletely() throws IOException
WstxInputSource
closeCompletely
in class WstxInputSource
IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |