wt.fv.master
Class DownloadInpStream

java.lang.Object
  extended byjava.io.InputStream
      extended bywt.fv.master.DownloadInpStream
All Implemented Interfaces:
Serializable

public class DownloadInpStream
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  RedirectListener listener
           
private static String RESOURCE
           
private  InputStream stream
           
 
Fields inherited from class java.io.InputStream
 
Constructor Summary
DownloadInpStream(InputStream iStream)
          

Supported API: false
 
Method Summary
 int available()
          

Supported API: false
 void close()
          

Supported API: false
 RedirectListener 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(RedirectListener 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

listener

private RedirectListener listener

stream

private InputStream stream
Constructor Detail

DownloadInpStream

public DownloadInpStream(InputStream iStream)


Supported API: false

Parameters:
iStream -
Method Detail

getListener

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

Supported API: false

Returns:
RedirectListener

setListener

public void setListener(RedirectListener 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