| java.lang.Object | |
| ↳ | com.google.code.com.sun.mail.iap.ByteArray |
A simple wrapper around a byte array, with a start position and count of bytes.
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| bytes | |||||||||||
| count | |||||||||||
| start | |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Constructor
| |||||||||||
Constructor that creates a byte array of the specified size.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Returns the internal byte array.
| |||||||||||
Returns the count of bytes
| |||||||||||
Returns a new byte array that is a copy of the data.
| |||||||||||
Returns the start position
| |||||||||||
Grow the byte array by incr bytes.
| |||||||||||
Set the count of bytes.
| |||||||||||
Returns a ByteArrayInputStream.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Constructor
| b | |
|---|---|
| start | |
| count |
Constructor that creates a byte array of the specified size.
| size |
|---|
Returns the internal byte array. Note that this is a live reference to the actual data, not a copy.
Returns the count of bytes
Returns a new byte array that is a copy of the data.
Returns the start position
Grow the byte array by incr bytes.
| incr |
|---|
Set the count of bytes.
| count |
|---|
Returns a ByteArrayInputStream.