public class RandomAccessByteArray extends java.lang.Object implements RandomAccessStream
| Constructor and Description |
|---|
RandomAccessByteArray()
Create an empty RandomAccessByteArray.
|
RandomAccessByteArray(byte[] array)
Create a RandomAccessByteArray initialized with the content of a plain array.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
byte[] |
getByteArray() |
byte[] |
getByteArray(int first) |
static void |
main(java.lang.String[] args) |
void |
seek(int i) |
void |
setLength(int i) |
int |
tell() |
void |
write(int s0) |
public RandomAccessByteArray()
public RandomAccessByteArray(byte[] array)
array - the array whose content will be copied in the RandomAccessByteArray.public void seek(int i)
seek in interface RandomAccessStreampublic int tell()
tell in interface RandomAccessStreampublic void close()
close in interface RandomAccessStreampublic void write(int s0)
write in interface RandomAccessStreampublic byte[] getByteArray()
public byte[] getByteArray(int first)
public void setLength(int i)
setLength in interface RandomAccessStreampublic static void main(java.lang.String[] args)