com.sshtools.j2ssh.transport
Class TransportProtocolInputStream
java.lang.Object
com.sshtools.j2ssh.transport.TransportProtocolInputStream
class TransportProtocolInputStream
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
private static org.apache.commons.logging.Log log
bytesTransfered
private long bytesTransfered
in
private java.io.BufferedInputStream in
sequenceLock
private java.lang.Object sequenceLock
transport
private TransportProtocolCommon transport
algorithms
private TransportProtocolAlgorithmSync algorithms
sequenceNo
private long sequenceNo
sequenceWrapLimit
private long sequenceWrapLimit
cipher
private SshCipher cipher
hmac
private SshHmac hmac
compression
private SshCompression compression
msglen
int msglen
padlen
int padlen
read
int read
remaining
int remaining
cipherlen
int cipherlen
maclen
int maclen
message
ByteArrayWriter message
initial
byte[] initial
data
byte[] data
buffered
byte[] buffered
startpos
int startpos
endpos
int endpos
TransportProtocolInputStream
public TransportProtocolInputStream(TransportProtocolCommon transport,
java.io.InputStream in,
TransportProtocolAlgorithmSync algorithms)
throws java.io.IOException
- Creates a new TransportProtocolInputStream object.
- Parameters:
transport
- in
- algorithms
-
- Throws:
java.io.IOException
getSequenceNo
public long getSequenceNo()
- Returns:
getNumBytesTransfered
protected long getNumBytesTransfered()
- Returns:
available
protected int available()
- Returns:
readBufferedData
protected int readBufferedData(byte[] buf,
int off,
int len)
throws java.io.IOException
- Parameters:
buf
- off
- len
-
- Returns:
-
- Throws:
java.io.IOException
readMessage
public byte[] readMessage()
throws java.net.SocketException,
java.io.IOException
- Returns:
-
- Throws:
java.net.SocketException
java.io.IOException