BlobAccessor
, java.io.Serializable
public class ByteLongObject extends java.lang.Object implements java.io.Serializable, BlobAccessor
Constructor | Description |
---|---|
ByteLongObject(byte[] from) |
|
ByteLongObject(byte[] from,
int offset,
int length) |
Constructor.
|
ByteLongObject(java.io.InputStream in,
int length) |
Modifier and Type | Method | 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.
|
java.io.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.
|
java.lang.String |
toString() |
public ByteLongObject(byte[] from, int offset, int length)
public ByteLongObject(byte[] from)
public ByteLongObject(java.io.InputStream in, int length) throws java.io.IOException
java.io.IOException
public int length()
length
in interface BlobAccessor
public byte getByte(int n)
public byte[] getByteArray()
public java.io.InputStream getInputStream()
getInputStream
in interface BlobAccessor
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2018. All rights reserved.