|
|||||||||
| 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
public abstract class BaseInputSource
Abstract base class that implements shared functionality that all current
WstxInputSource implementations Woodstox includes need.
| Field Summary | |
|---|---|
protected char[] |
mBuffer
Input buffer this input source uses, if any. |
protected int |
mInputLen
Length of the buffer, if buffer used |
| Fields inherited from class com.ctc.wstx.io.WstxInputSource |
|---|
mParent |
| Constructor Summary | |
|---|---|
protected |
BaseInputSource(WstxInputSource parent,
java.lang.String fromEntity,
java.lang.String publicId,
java.lang.String systemId,
java.net.URL src)
|
| Method Summary | |
|---|---|
abstract void |
close()
Method reader calls for this input source when it has encountered EOF. |
protected abstract void |
doInitInputLocation(WstxInputData reader)
|
abstract boolean |
fromInternalEntity()
|
protected WstxInputLocation |
getLocation()
This method only gets called by the 'child' input source (for example, contents of an expanded entity), to get the enclosing context location. |
WstxInputLocation |
getLocation(long total,
int row,
int col)
|
java.lang.String |
getPublicId()
|
java.net.URL |
getSource()
|
java.lang.String |
getSystemId()
|
abstract int |
readInto(WstxInputData reader)
Method called to read at least one more char from input source, and update input data appropriately. |
abstract 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 |
restoreContext(WstxInputData reader)
Method Reader calls when this input source is resumed as the current source. |
void |
saveContext(WstxInputData reader)
Method Reader calls when this input source is being stored, when a nested input source gets used instead (due to entity expansion). |
| Methods inherited from class com.ctc.wstx.io.WstxInputSource |
|---|
closeCompletely, getEntityId, getParent, getScopeId, initInputLocation, isOrIsExpandedFrom, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected char[] mBuffer
protected int mInputLen
| Constructor Detail |
|---|
protected BaseInputSource(WstxInputSource parent,
java.lang.String fromEntity,
java.lang.String publicId,
java.lang.String systemId,
java.net.URL src)
| Method Detail |
|---|
public abstract boolean fromInternalEntity()
fromInternalEntity in class WstxInputSourcepublic java.net.URL getSource()
getSource in class WstxInputSourcepublic java.lang.String getPublicId()
getPublicId in class WstxInputSourcepublic java.lang.String getSystemId()
getSystemId in class WstxInputSourceprotected abstract void doInitInputLocation(WstxInputData reader)
doInitInputLocation in class WstxInputSource
public abstract int readInto(WstxInputData reader)
throws java.io.IOException
WstxInputSource
readInto in class WstxInputSourcejava.io.IOException
public abstract boolean readMore(WstxInputData reader,
int minAmount)
throws java.io.IOException
WstxInputSource
readMore in class WstxInputSourcejava.io.IOExceptionpublic void saveContext(WstxInputData reader)
WstxInputSource
saveContext in class WstxInputSourcepublic void restoreContext(WstxInputData reader)
WstxInputSource
restoreContext in class WstxInputSource
public abstract void close()
throws java.io.IOException
WstxInputSource
close in class WstxInputSourcejava.io.IOExceptionprotected final WstxInputLocation getLocation()
getLocation in class WstxInputSource
public final WstxInputLocation getLocation(long total,
int row,
int col)
getLocation in class WstxInputSource
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||