wt.fv.local
Class DownloadInputStream

java.lang.Object
  extended byjava.io.InputStream
      extended bywt.fv.local.DownloadInputStream
All Implemented Interfaces:
Serializable

public class DownloadInputStream
extends InputStream
implements Serializable

The class is a wrapper for Input Stream. It contains an Input Stream attribute and listener attribute. The listener is RedirectDownloadListener. A signal onPostRead is sent to the listener.

Supported API: false

Extendable: false

See Also:
Serialized Form

Field Summary
private static String CLASSNAME
           
private  RedirectDownloadListener listener
           
private static String RESOURCE
           
private  InputStream stream
           
static boolean VERBOSE
           
private static String versionID
           
 
Fields inherited from class java.io.InputStream
 
Constructor Summary
DownloadInputStream(InputStream iStream)
          

Supported API: false
 
Method Summary
 int available()
          

Supported API: false
 void close()
          

Supported API: false
 RedirectDownloadListener getListener()
          Gets the value of the attribute: listener.
 InputStream getStream()
          Gets the value of the attribute: stream.
 void mark(int readlimit)
          

Supported API: false
 boolean markSupported()
          

Supported API: false
 int read()
          

Supported API: false
 int read(byte[] b)
          

Supported API: false
 int read(byte[] b, int off, int len)
          

Supported API: false
 void reset()
          

Supported API: false
 void setListener(RedirectDownloadListener a_Listener)
          Sets the value of the attribute: listener.
 void setStream(InputStream a_Stream)
          Sets the value of the attribute: stream.
 long skip(long n)
          

Supported API: false
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

versionID

private static final String versionID
See Also:
Constant Field Values

listener

private RedirectDownloadListener listener

stream

private InputStream stream

VERBOSE

public static boolean VERBOSE
Constructor Detail

DownloadInputStream

public DownloadInputStream(InputStream iStream)


Supported API: false

Parameters:
iStream -
Method Detail

getListener

public RedirectDownloadListener getListener()
Gets the value of the attribute: listener.

Supported API: false

Returns:
RedirectDownloadListener

setListener

public void setListener(RedirectDownloadListener a_Listener)
                 throws WTPropertyVetoException
Sets the value of the attribute: listener.

Supported API: false

Parameters:
a_Listener -
Throws:
WTPropertyVetoException

getStream

public InputStream getStream()
Gets the value of the attribute: stream.

Supported API: false

Returns:
InputStream

setStream

public void setStream(InputStream a_Stream)
               throws WTPropertyVetoException
Sets the value of the attribute: stream.

Supported API: false

Parameters:
a_Stream -
Throws:
WTPropertyVetoException

read

public int read()
         throws IOException


Supported API: false

Returns:
int
Throws:
IOException

read

public int read(byte[] b)
         throws IOException


Supported API: false

Parameters:
b -
Returns:
int
Throws:
IOException

read

public int read(byte[] b,
                int off,
                int len)
         throws IOException


Supported API: false

Parameters:
b -
off -
len -
Returns:
int
Throws:
IOException

mark

public void mark(int readlimit)


Supported API: false

Parameters:
readlimit -

skip

public long skip(long n)
          throws IOException


Supported API: false

Parameters:
n -
Returns:
long
Throws:
IOException

close

public void close()
           throws IOException


Supported API: false

Throws:
IOException

reset

public void reset()
           throws IOException


Supported API: false

Throws:
IOException

available

public int available()
              throws IOException


Supported API: false

Returns:
int
Throws:
IOException

markSupported

public boolean markSupported()


Supported API: false

Returns:
boolean