|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.InputStream
java.io.FilterInputStream
Task.ProgressMonitor.InputStreamUIHookSupport
public class InputStreamUIHookSupport
InputStreamUIHookSupport is used to notify a UIHookIF that IO operations are being performed and to report the status of the IO operation. Contrary to what you would think, this class reports the WRITE status (not READ status). This class is used by HttpMBClient to send the POST request. The POST method uses chunking, and the bytes are read, then sent to the service... therefore, the reads tell us the "SEND status", not the "RECIEVE status".
| Nested Class Summary | |
|---|---|
static class |
InputStreamUIHookSupport.Type
|
| Field Summary |
|---|
| Fields inherited from class java.io.FilterInputStream |
|---|
in |
| Constructor Summary | |
|---|---|
InputStreamUIHookSupport(InputStreamUIHookSupport.Type type,
UIHookIF uiHook,
java.net.HttpURLConnection method)
|
|
InputStreamUIHookSupport(InputStreamUIHookSupport.Type type,
UIHookIF uiHook,
java.io.InputStream in)
Constructs an object to monitor the progress of an input stream. |
|
| Method Summary | |
|---|---|
void |
close()
Overrides FilterInputStream.closeInUI
to closeInUI the progress monitor as well as the stream. |
UIHookIF |
getUIHook()
Get the ProgressMonitor object being used by this stream. |
int |
read()
Overrides FilterInputStream.read
to update the progress monitor after the read. |
int |
read(byte[] b)
Overrides FilterInputStream.read
to update the progress monitor after the read. |
int |
read(byte[] b,
int off,
int len)
Overrides FilterInputStream.read
to update the progress monitor after the read. |
void |
reset()
Overrides FilterInputStream.reset
to reset the progress monitor as well as the stream. |
long |
skip(long n)
Overrides FilterInputStream.skip
to update the progress monitor after the skip. |
| Methods inherited from class java.io.FilterInputStream |
|---|
available, mark, markSupported |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InputStreamUIHookSupport(InputStreamUIHookSupport.Type type,
UIHookIF uiHook,
java.io.InputStream in)
in - The input stream to be monitored.
public InputStreamUIHookSupport(InputStreamUIHookSupport.Type type,
UIHookIF uiHook,
java.net.HttpURLConnection method)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public UIHookIF getUIHook()
public int read()
throws java.io.IOException
FilterInputStream.read
to update the progress monitor after the read.
read in class java.io.FilterInputStreamjava.io.IOException
public int read(byte[] b)
throws java.io.IOException
FilterInputStream.read
to update the progress monitor after the read.
read in class java.io.FilterInputStreamjava.io.IOException
public int read(byte[] b,
int off,
int len)
throws java.io.IOException
FilterInputStream.read
to update the progress monitor after the read.
read in class java.io.FilterInputStreamjava.io.IOException
public long skip(long n)
throws java.io.IOException
FilterInputStream.skip
to update the progress monitor after the skip.
skip in class java.io.FilterInputStreamjava.io.IOException
public void close()
throws java.io.IOException
FilterInputStream.closeInUI
to closeInUI the progress monitor as well as the stream.
close in interface java.io.Closeableclose in class java.io.FilterInputStreamjava.io.IOException
public void reset()
throws java.io.IOException
FilterInputStream.reset
to reset the progress monitor as well as the stream.
reset in class java.io.FilterInputStreamjava.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||