|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.mail.iap.ByteArray
public class ByteArray
A simple wrapper around a byte array, with a start position and count of bytes.
| Constructor Summary | |
|---|---|
ByteArray(byte[] b,
int start,
int count)
Constructor |
|
ByteArray(int size)
Constructor that creates a byte array of the specified size. |
|
| Method Summary | |
|---|---|
byte[] |
getBytes()
Returns the internal byte array. |
int |
getCount()
Returns the count of bytes |
byte[] |
getNewBytes()
Returns a new byte array that is a copy of the data. |
int |
getStart()
Returns the start position |
void |
grow(int incr)
Grow the byte array by incr bytes. |
void |
setCount(int count)
Set the count of bytes. |
ByteArrayInputStream |
toByteArrayInputStream()
Returns a ByteArrayInputStream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ByteArray(byte[] b,
int start,
int count)
public ByteArray(int size)
| Method Detail |
|---|
public byte[] getBytes()
public byte[] getNewBytes()
public int getStart()
public int getCount()
public void setCount(int count)
public ByteArrayInputStream toByteArrayInputStream()
public void grow(int incr)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||