public class ByteArray
extends java.lang.Object
Constructor and Description |
---|
ByteArray(byte[] b,
int start,
int count)
Constructor
|
ByteArray(int size)
Constructor that creates a byte array of the specified size.
|
Modifier and Type | Method and Description |
---|---|
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.
|
java.io.ByteArrayInputStream |
toByteArrayInputStream()
Returns a ByteArrayInputStream.
|
public ByteArray(byte[] b, int start, int count)
public ByteArray(int size)
public byte[] getBytes()
public byte[] getNewBytes()
public int getStart()
public int getCount()
public void setCount(int count)
public java.io.ByteArrayInputStream toByteArrayInputStream()
public void grow(int incr)
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"