|
SSH Factory | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.io.InputStream
com.jscape.inet.telnet.TelnetInputStream
Specialised input stream used to interpret telnet commands in ASCII stream.
| Constructor Summary | |
TelnetInputStream(Telnet tn,
java.io.InputStream in)
Creates a new TelnetInputStream object. |
|
| Method Summary | |
int |
available()
Returns the number of bytes that can be read (or skipped over) from this input stream without blocking by the next caller of a method for this input stream. |
void |
flush()
Reads until the amount of data available is greater than 0 bytes |
java.io.InputStream |
getStream()
Returns underlying stream. |
void |
mark(int readlimit)
Marks the current position in this input stream. |
boolean |
markSupported()
Checks if mark is supported in this TelnetInputStream |
int |
read()
Read data from telnet stream with escaping control characters. |
int |
read(byte[] b)
Read data from telnet stream with escaping control characters. |
int |
read(byte[] b,
int off,
int len)
Read data from telnet stream with escaping control characters. |
java.lang.String |
readBlock(java.lang.String[] lbr)
Reads from the stream. |
java.lang.String |
readLine(java.lang.String[] lbr)
Reads from the stream. |
void |
reset()
Repositions this stream to the position at the time the mark method was last called on this input stream. |
long |
skip(long n)
Skips over and discards n bytes of data from this input stream. |
int |
tread()
Read data from telnet stream without escaping control characters. |
| Methods inherited from class java.io.InputStream |
close |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TelnetInputStream(Telnet tn,
java.io.InputStream in)
tn - a Telnetin - an InputStream| Method Detail |
public java.io.InputStream getStream()
public int read()
throws java.io.IOException
java.io.IOException - if an I/O related error occurs
public int tread()
throws java.io.IOException
java.io.IOException - if an I/O related error occurs
public int read(byte[] b)
throws java.io.IOException
b - buffer to read data from
java.io.IOException - if an I/O related error occurs
public int read(byte[] b,
int off,
int len)
throws java.io.IOException
b - buffer to read data fromoff - offset in buffer to start reading fromlen - length of data to read from offset
java.io.IOException - if an I/O related error occurspublic boolean markSupported()
public long skip(long n)
throws java.io.IOException
n - the number of bytes to skip
java.io.IOException - if an I/O error occursInputStream.skip(long)public void mark(int readlimit)
readlimit - the maximum limit of bytes that can be read before the mark position becomes invalid.InputStream.mark(int)
public int available()
throws java.io.IOException
java.io.IOException - if an I/O error occurs.InputStream.available()
public void flush()
throws java.io.IOException
java.io.IOException
public void reset()
throws java.io.IOException
java.io.IOException - if an I/O related error occursInputStream.reset()
public java.lang.String readLine(java.lang.String[] lbr)
throws java.io.IOException
lbr - Line break sequences the method is expected to recognise
java.io.IOException - if an I/O related error occurs
public java.lang.String readBlock(java.lang.String[] lbr)
throws java.io.IOException
lbr - Array of strings to match against
java.io.IOException - if an I/O error occurs
|
SSH Factory | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||