|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A byte vector with a relatively efficient method to check whether it has changed. Implementations are not required to be thread-safe.
Field Summary | |
static long |
SECONDS
For example, setAcceptableStaleness(60 * SECONDS). |
Method Summary | |
java.lang.String |
getSystemID()
The SystemID that identifies the input source, or null if its SystemID is unknown. |
java.io.InputStream |
input()
Begin reading the data (as a stream of bytes). |
java.io.InputStream |
inputIfModified()
Begin reading the data (as a stream of bytes) if it has changed since the last call to input() or inputIfModified(). |
void |
pollSoon()
Check for a change in the data next time inputIfModified is called, regardless of the currently acceptable staleness. |
void |
setAcceptableStaleness(long msec)
Set the maximum amount of time that may elapse from a change in the data until the change is detected by this object. |
Field Detail |
public static final long SECONDS
Method Detail |
public java.lang.String getSystemID()
public java.io.InputStream input() throws java.io.IOException
java.io.IOException
public java.io.InputStream inputIfModified() throws java.io.IOException
java.io.IOException
public void pollSoon()
public void setAcceptableStaleness(long msec)
msec
- the acceptable staleness, in units of milliseconds.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |