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
-
FSPInputStream(FSPsession, String)
- creates a new Input stream for reading file from fsp server
-
available()
- returns the number of bytes that can be read from this input stream
without blocking.
-
close()
- frees internal buffers.
-
mark(int)
- marks current position in the stream.
-
markSupported()
- returns true - mark is supported.
-
read()
- reads next byte from stream or -1 if EOF
-
read(byte[], int, int)
- reads data from FSP stream
-
reset()
- Repositions this stream to the position at the time the mark method was last called on this input stream.
-
skip(long)
- skips n bytes in input stream.
FSPInputStream
public FSPInputStream(FSPsession ses,
String filename)
- creates a new Input stream for reading file from fsp server
available
public int available()
- returns the number of bytes that can be read from this input stream
without blocking.
- Overrides:
- available in class InputStream
close
public void close()
- frees internal buffers.
FSPsession is not closed
- Overrides:
- close in class InputStream
mark
public synchronized void mark(int readlimit)
- marks current position in the stream.
- Parameters:
- readlimit - ignored
- Overrides:
- mark in class InputStream
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
markSupported
public boolean markSupported()
- returns true - mark is supported.
- Overrides:
- markSupported in class InputStream
read
public int read() throws IOException
- reads next byte from stream or -1 if EOF
- Overrides:
- read in class InputStream
read
public int read(byte b[],
int off,
int len) throws IOException
- reads data from FSP stream
- Overrides:
- read in class InputStream
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