| java.lang.Object | |
| ↳ | net.schmizz.sshj.common.Buffer<T extends net.schmizz.sshj.common.Buffer<T>> |
Known Direct Subclasses
|
Known Indirect Subclasses
|
| Nested Classes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Buffer.BufferException | |||||||||||
| Buffer.PlainBuffer | |||||||||||
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| int | DEFAULT_SIZE | The default size for a Buffer (256 bytes) |
|||||||||
| int | MAX_SIZE | The maximum valid size of buffer (i.e. | |||||||||
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| data | |||||||||||
| rpos | |||||||||||
| wpos | |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Resets this buffer.
| |||||||||||
Compact this
SSHPacket | |||||||||||
Gives a readable snapshot of the buffer in hex.
| |||||||||||
Puts an SSH boolean value
| |||||||||||
Copies the contents of provided buffer into this buffer
| |||||||||||
Writes a single byte into this buffer
| |||||||||||
Writes Java byte-array as an SSH byte-array
| |||||||||||
Writes Java byte-array as an SSH byte-array
| |||||||||||
Writes a char-array as an SSH string and then blanks it out.
| |||||||||||
Writes a uint32 integer
| |||||||||||
Read an SSH boolean byte
| |||||||||||
Read a byte from the buffer
| |||||||||||
Read an SSH byte-array
| |||||||||||
Read an SSH multiple-precision integer
| |||||||||||
Reads an SSH string
| |||||||||||
Reads an SSH string
| |||||||||||
| Protected Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
The default size for a Buffer (256 bytes)
The maximum valid size of buffer (i.e. biggest power of two that can be represented as an int - 2^30)
| data |
|---|
| size |
|---|
Resets this buffer. The object becomes ready for reuse.
| capacity |
|---|
Gives a readable snapshot of the buffer in hex. This is useful for debugging.
Puts an SSH boolean value
| b | The value |
|---|
Copies the contents of provided buffer into this buffer
| buffer | The Buffer to copy |
|---|
Writes a single byte into this buffer
| b |
|---|
Writes Java byte-array as an SSH byte-array
| b | Java byte-array |
|---|---|
| off | Offset |
| len | Length |
Writes Java byte-array as an SSH byte-array
| b | Java byte-array |
|---|
| bi |
|---|
| key |
|---|
| d |
|---|
| d | |
|---|---|
| off | |
| len |
Writes a char-array as an SSH string and then blanks it out.
This is useful when a plaintext password needs to be sent. Ifstr is null, an empty string is
written.| str | (null-ok) the string as a character array |
|---|
| sigFormat | |
|---|---|
| sigData |
| str |
|---|
| string |
|---|
| str | |
|---|---|
| offset | |
| len |
Writes a uint32 integer
| uint32 |
|---|
| uint64 |
|---|
Read an SSH multiple-precision integer
BigInteger
| Buffer.BufferException |
|---|
| rpos |
|---|
| wpos |
|---|
| i |
|---|