public class ByteLongObject extends Object implements Serializable, BlobAccessor
| Constructor and Description |
|---|
ByteLongObject(byte[] from) |
ByteLongObject(byte[] from,
int offset,
int length)
Constructor.
|
ByteLongObject(InputStream in,
int length) |
| Modifier and Type | Method and Description |
|---|---|
byte |
getByte(int n)
Returns the byte at offset 'n' into the binary object.
|
byte[] |
getByteArray()
Returns the internal byte[] of this binary object.
|
InputStream |
getInputStream()
Returns an InputStream that allows us to read the entire byte long object.
|
int |
length()
Returns the size of the data in this object.
|
String |
toString() |
public ByteLongObject(byte[] from,
int offset,
int length)
public ByteLongObject(byte[] from)
public ByteLongObject(InputStream in, int length) throws IOException
IOExceptionpublic int length()
length in interface BlobAccessorpublic byte getByte(int n)
public byte[] getByteArray()
public InputStream getInputStream()
getInputStream in interface BlobAccessorCopyright © 2015. All rights reserved.