All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class net.fsp.FSPInputStream

java.lang.Object
   |
   +----java.io.InputStream
           |
           +----net.fsp.FSPInputStream

public class FSPInputStream
extends InputStream
This class allows reading file from FSP server.

See Also:
InputStream

Constructor Index

 o FSPInputStream(FSPsession, String)
creates a new Input stream for reading file from fsp server

Method Index

 o available()
returns the number of bytes that can be read from this input stream without blocking.
 o close()
frees internal buffers.
 o mark(int)
marks current position in the stream.
 o markSupported()
returns true - mark is supported.
 o read()
reads next byte from stream or -1 if EOF
 o read(byte[], int, int)
reads data from FSP stream
 o reset()
Repositions this stream to the position at the time the mark method was last called on this input stream.
 o skip(long)
skips n bytes in input stream.

Constructors

 o FSPInputStream
 public FSPInputStream(FSPsession ses,
                       String filename)
creates a new Input stream for reading file from fsp server

Methods

 o available
 public int available()
returns the number of bytes that can be read from this input stream without blocking.

Overrides:
available in class InputStream
 o close
 public void close()
frees internal buffers.

FSPsession is not closed

Overrides:
close in class InputStream
 o mark
 public synchronized void mark(int readlimit)
marks current position in the stream.

Parameters:
readlimit - ignored
Overrides:
mark in class InputStream
 o reset
 public synchronized void reset()
Repositions this stream to the position at the time the mark method was last called on this input stream.

If no mark method was called, rewind stream to zero.

Overrides:
reset in class InputStream
 o markSupported
 public boolean markSupported()
returns true - mark is supported.

Overrides:
markSupported in class InputStream
 o read
 public int read() throws IOException
reads next byte from stream or -1 if EOF

Overrides:
read in class InputStream
 o read
 public int read(byte b[],
                 int off,
                 int len) throws IOException
reads data from FSP stream

Overrides:
read in class InputStream
 o skip
 public long skip(long bytes) throws IOException
skips n bytes in input stream.

Parameters:
bytes - number of bytes to be skipped
Returns:
0 on EOF or bytes
Overrides:
skip in class InputStream

All Packages  Class Hierarchy  This Package  Previous  Next  Index