|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface StatusLogger
This defines an interface for logging status messages. In a user interface, this can be implemented as a progress bar and test message.
StatusPanel
Method Summary | |
---|---|
ProgressBarFilterInputStream |
getLoggedInputStream(java.io.InputStream in,
int size)
Return a input stream that will generate log messages showing the progress of the read from the given stream. |
ProgressBarFilterInputStream |
getLoggedInputStream(java.net.URL url)
Return an input stream to use for reading from the given URL that will generate log messages showing the progress of the read. |
void |
logMessage(java.lang.String msg)
Log or display the given message |
java.net.URLConnection |
openConnection(java.net.URL url)
Return a connection to the given URL and log messages before and after opening the connection. |
void |
setProgress(int percent)
Set the percent done. |
void |
stopLoggingInputStream(ProgressBarFilterInputStream in)
Stop logging reads from the input stream returned from an earlier call to getLoggedInputStream(). |
Method Detail |
---|
void logMessage(java.lang.String msg)
void setProgress(int percent)
java.net.URLConnection openConnection(java.net.URL url) throws java.io.IOException
java.io.IOException
ProgressBarFilterInputStream getLoggedInputStream(java.io.InputStream in, int size) throws java.io.IOException
in
- the input stream to be monitoredsize
- the size in bytes of the date to be read, or 0 if not known
java.io.IOException
ProgressBarFilterInputStream getLoggedInputStream(java.net.URL url) throws java.io.IOException
url
- the URL to read
java.io.IOException
void stopLoggingInputStream(ProgressBarFilterInputStream in) throws java.io.IOException
in
- an input stream returned from getLoggedInputStream()
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |