DataSource backed by a byte array.
| Modifier and Type | Field and Description |
|---|---|
| private byte[] | |
| private static final int | |
| private long |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | copyTo(OutputStream stream)
Implements abstract org. Copies the contents to the specified OutputStream |
| private void | |
| public ByteBuffer | |
| public long | |
| public void |
| buffer | back to summary |
|---|---|
| private byte[] buffer | |
| MAX_RECORD_LENGTH | back to summary |
|---|---|
| private static final int MAX_RECORD_LENGTH | |
| size | back to summary |
|---|---|
| private long size | |
| ByteArrayBackedDataSource | back to summary |
|---|---|
| public ByteArrayBackedDataSource(byte[] data, int size) | |
| ByteArrayBackedDataSource | back to summary |
|---|---|
| public ByteArrayBackedDataSource(byte[] data) | |
| close | back to summary |
|---|---|
| public void close() Implements abstract org. Doc from org. Close the underlying stream
| |
| copyTo | back to summary |
|---|---|
| public void copyTo(OutputStream stream) throws IOException Implements abstract org. Doc from org. Copies the contents to the specified OutputStream
| |
| extend | back to summary |
|---|---|
| private void extend(long length) | |
| read | back to summary |
|---|---|
| public ByteBuffer read(int length, long position) Implements abstract org.
| |
| size | back to summary |
|---|---|
| public long size() Implements abstract org.
| |
| write | back to summary |
|---|---|
| public void write(ByteBuffer src, long position) Implements abstract org.
| |