public class ByteArrayByteSource extends Object implements ByteSource
| Constructor and Description |
|---|
ByteArrayByteSource(byte[] arr) |
ByteArrayByteSource(byte[] arr,
int off) |
ByteArrayByteSource(byte[] arr,
int off,
int len) |
| Modifier and Type | Method and Description |
|---|---|
byte |
get(long index) |
byte[] |
getArr() |
int |
getOff() |
long |
length() |
void |
setArr(byte[] arr) |
void |
setLen(int len) |
void |
setOff(int off) |
public ByteArrayByteSource(byte[] arr)
public ByteArrayByteSource(byte[] arr,
int off)
public ByteArrayByteSource(byte[] arr,
int off,
int len)
public byte get(long index)
get in interface ByteSourcepublic long length()
length in interface ByteSourcepublic byte[] getArr()
public void setArr(byte[] arr)
public int getOff()
public void setOff(int off)
public void setLen(int len)
Copyright © 2015. All rights reserved.