|
Secure iNet Factory | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jscape.inet.ssh.SshReader
public class SshReader
Reads the basic SSH types from the underalyed input stream.
| Constructor Summary | |
|---|---|
SshReader(byte[] data)
Creates a new reader instance for the specified byte array. |
|
SshReader(java.io.InputStream in,
boolean owner)
Creates a new reader instance. |
|
| Method Summary | |
|---|---|
void |
close()
Closes the current reader. |
boolean |
readBoolean()
Reads a SSH boolean value. |
int |
readByte()
Reads a SSH byte value. |
void |
readFully(byte[] b)
Reads the data into specified buffer. |
void |
readFully(byte[] b,
int offset,
int length)
Reads the data into specified buffer. |
int |
readInt32()
Reads a SSH int32 value. |
long |
readInt64()
Reads a SSH int64 value. |
java.lang.String |
readLine()
Reads a string separated by "\r\n" symbols. |
java.math.BigInteger |
readMpint()
Reads a SSH mpint value. |
java.lang.String[] |
readNameList()
Reads a SSH name list. |
java.lang.String |
readString()
Reads a SSH string. |
byte[] |
readStringAsByteArray()
Reads a SSH string and returns it as a byte array. |
long |
readUint32()
Reads a SSH uint32 value. |
java.math.BigInteger |
readUint64()
Reads a SSH uint64 value. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SshReader(byte[] data)
data - the data source
public SshReader(java.io.InputStream in,
boolean owner)
in - the underlayed input streamowner - if true the reader will close the underlayed
stream while its own closing| Method Detail |
|---|
public void close()
public boolean readBoolean()
throws java.io.IOException
java.io.IOException - if an I/O error occurs
public int readByte()
throws java.io.IOException
int.
java.io.IOException - if an I/O error occurs
public long readUint32()
throws java.io.IOException
long.
java.io.IOException - if an I/O error occurs
public int readInt32()
throws java.io.IOException
java.io.IOException - if an I/O error occurs
public java.math.BigInteger readUint64()
throws java.io.IOException
java.io.IOException - if an I/O error occurs
public long readInt64()
throws java.io.IOException
java.io.IOException - if an I/O error occurs
public java.lang.String readString()
throws java.io.IOException
java.io.IOException - if an I/O error occurs
public byte[] readStringAsByteArray()
throws java.io.IOException
java.io.IOException - if an I/O error occurs
public java.math.BigInteger readMpint()
throws java.io.IOException
java.io.IOException - if an I/O error occurs
public java.lang.String[] readNameList()
throws java.io.IOException
java.io.IOException - if an I/O error occurs
public java.lang.String readLine()
throws java.io.IOException
java.io.IOException - if an I/O error occurs
public void readFully(byte[] b)
throws java.io.IOException
b - the data buffer.
java.io.IOException - if an I/O error occurs
public void readFully(byte[] b,
int offset,
int length)
throws java.io.IOException
b - the data bufferoffset - the buffer offsetlength - the data length
java.io.IOException - if an I/O error occurs
|
Secure iNet Factory | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||