Usually not to be used by applications. More...
Public Member Functions | |
Buffer (int size) | |
creates a Buffer with given size. | |
Buffer (byte[] buffer) | |
Creates a buffer using the given array as backing store. | |
Buffer () | |
Creates a buffer with a default size of 20 KB. | |
void | putByte (byte foo) |
puts one byte into the buffer. | |
Package Attributes | |
final byte[] | tmp = new byte[4] |
byte[] | buffer |
int | index |
int | s |
Usually not to be used by applications.
A chunk of bytes together with methods to access them. This implements the low-level protocol elements used by the different layers of the SSH protocol.
The Buffer maintains a current index (from where on the put methods write, updating it on the way) and an getOffSet offset}. The offset is used by the get methods to read (and they update the offset, too). If a buffer is used for both reading and writing, the index should normally be bigger than the offset. Initially both are 0.
Definition at line 47 of file Buffer.java.
com.jcraft.jsch.Buffer.Buffer | ( | int | size | ) |
creates a Buffer with given size.
Definition at line 56 of file Buffer.java.
References com.jcraft.jsch.Buffer.buffer, com.jcraft.jsch.Buffer.index, and com.jcraft.jsch.Buffer.s.
com.jcraft.jsch.Buffer.Buffer | ( | byte[] | buffer | ) |
Creates a buffer using the given array as backing store.
Definition at line 65 of file Buffer.java.
References com.jcraft.jsch.Buffer.index, and com.jcraft.jsch.Buffer.s.
com.jcraft.jsch.Buffer.Buffer | ( | ) |
Creates a buffer with a default size of 20 KB.
Definition at line 74 of file Buffer.java.
void com.jcraft.jsch.Buffer.putByte | ( | byte | foo | ) |
puts one byte into the buffer.
Definition at line 79 of file Buffer.java.
References com.jcraft.jsch.Buffer.buffer, and com.jcraft.jsch.Buffer.index.
Referenced by com.jcraft.jsch.Session.connect(), com.jcraft.jsch.ChannelDirectTCPIP.connect(), com.jcraft.jsch.ChannelForwardedTCPIP.delPort(), com.jcraft.jsch.RequestX11.request(), com.jcraft.jsch.RequestWindowChange.request(), com.jcraft.jsch.RequestSubsystem.request(), com.jcraft.jsch.RequestSignal.request(), com.jcraft.jsch.RequestShell.request(), com.jcraft.jsch.RequestSftp.request(), com.jcraft.jsch.RequestPtyReq.request(), com.jcraft.jsch.RequestExec.request(), com.jcraft.jsch.RequestEnv.request(), com.jcraft.jsch.RequestAgentForwarding.request(), com.jcraft.jsch.ChannelX11.run(), com.jcraft.jsch.ChannelSession.run(), com.jcraft.jsch.ChannelForwardedTCPIP.run(), com.jcraft.jsch.ChannelDirectTCPIP.run(), com.jcraft.jsch.ChannelAgentForwarding.send(), com.jcraft.jsch.Session.send_kexinit(), com.jcraft.jsch.Session.send_newkeys(), com.jcraft.jsch.UserAuthPublicKey.start(), com.jcraft.jsch.UserAuthPassword.start(), com.jcraft.jsch.UserAuthNone.start(), com.jcraft.jsch.UserAuthKeyboardInteractive.start(), and com.jcraft.jsch.ChannelAgentForwarding.write().
byte [] com.jcraft.jsch.Buffer.buffer [package] |
Definition at line 49 of file Buffer.java.
Referenced by com.jcraft.jsch.Buffer.Buffer(), com.jcraft.jsch.Session.connect(), com.jcraft.jsch.KeyPairRSA.getPublicKeyBlob(), com.jcraft.jsch.KeyPairDSA.getPublicKeyBlob(), com.jcraft.jsch.IdentityFile.getPublicKeyBlob_dss(), com.jcraft.jsch.IdentityFile.getPublicKeyBlob_rsa(), com.jcraft.jsch.IdentityFile.getSignature_dss(), com.jcraft.jsch.IdentityFile.getSignature_rsa(), com.jcraft.jsch.Packet.padding(), com.jcraft.jsch.Buffer.putByte(), com.jcraft.jsch.Session.receive_kexinit(), com.jcraft.jsch.ChannelX11.run(), com.jcraft.jsch.ChannelSession.run(), com.jcraft.jsch.ChannelForwardedTCPIP.run(), com.jcraft.jsch.ChannelDirectTCPIP.run(), com.jcraft.jsch.Session.send_kexinit(), com.jcraft.jsch.Packet.shift(), com.jcraft.jsch.UserAuthPublicKey.start(), com.jcraft.jsch.Packet.unshift(), and com.jcraft.jsch.ChannelAgentForwarding.write().
int com.jcraft.jsch.Buffer.index [package] |
Definition at line 50 of file Buffer.java.
Referenced by com.jcraft.jsch.Buffer.Buffer(), com.jcraft.jsch.Packet.padding(), com.jcraft.jsch.Buffer.putByte(), com.jcraft.jsch.Session.receive_kexinit(), com.jcraft.jsch.Packet.reset(), com.jcraft.jsch.Session.send_kexinit(), com.jcraft.jsch.Packet.shift(), com.jcraft.jsch.UserAuthPublicKey.start(), com.jcraft.jsch.Packet.unshift(), and com.jcraft.jsch.ChannelAgentForwarding.write().
int com.jcraft.jsch.Buffer.s [package] |
Definition at line 51 of file Buffer.java.
Referenced by com.jcraft.jsch.Buffer.Buffer(), com.jcraft.jsch.Session.receive_kexinit(), and com.jcraft.jsch.ChannelAgentForwarding.write().
final byte [] com.jcraft.jsch.Buffer.tmp = new byte[4] [package] |
Definition at line 48 of file Buffer.java.