public interface StatusLogger
StatusPanel
Modifier and Type | Method and Description |
---|---|
ProgressBarFilterInputStream |
getLoggedInputStream(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(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(String msg)
Log or display the given message
|
URLConnection |
openConnection(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().
|
void logMessage(String msg)
void setProgress(int percent)
URLConnection openConnection(URL url) throws IOException
IOException
ProgressBarFilterInputStream getLoggedInputStream(InputStream in, int size) throws IOException
in
- the input stream to be monitoredsize
- the size in bytes of the date to be read, or 0 if not knownIOException
ProgressBarFilterInputStream getLoggedInputStream(URL url) throws IOException
url
- the URL to readIOException
void stopLoggingInputStream(ProgressBarFilterInputStream in) throws IOException
in
- an input stream returned from getLoggedInputStream()IOException
Copyright © 2023 Central Laboratory of the Research Councils. All Rights Reserved.