|
Servertec Persistent Object Store 1.4.1 09/04/2005 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectstec.pos.Blob
public class Blob
A more efficient way to store byte arrays in persistent object stores and indexes.
| Constructor Summary | |
|---|---|
Blob(byte[] bytes)
Constructs a new Blob from the specified byte array. |
|
| Method Summary | |
|---|---|
int |
compareTo(Blob blob)
Returns whether the current Blob equals the specified Blob or which Blob is greater than and which Blob is less than. |
int |
compareTo(java.lang.Object object)
Returns whether the current Blob equals the specified Blob or which Blob is greater than and which Blob is less than. |
boolean |
equals(Blob blob)
Returns whether the current Blob equals the specified Blob. |
boolean |
equals(java.lang.Object object)
Returns whether the current Blob equals the specified object. |
byte |
getByteAt(int index)
Returns the byte at the specified index. |
byte[] |
getValue()
Returns the value of the Blob. |
int |
length()
Returns the number of bytes in the Blob. |
void |
setByteAt(int index,
byte b)
Sets the byte at the specified index to the given byte. |
void |
setValue(byte[] bytes)
Changes the value of the Blob. |
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Blob(byte[] bytes)
throws java.lang.NullPointerException
bytes - the byte array.
java.lang.NullPointerException - if the parameter passed is null.| Method Detail |
|---|
public byte[] getValue()
public void setValue(byte[] bytes)
bytes - the byte array.
java.lang.NullPointerException - if the parameter passed is null.public int length()
public byte getByteAt(int index)
throws java.lang.IndexOutOfBoundsException
index - the index of the byte.
java.lang.IndexOutOfBoundsException - if index is negative or greater than or equal to length().
public void setByteAt(int index,
byte b)
throws java.lang.IndexOutOfBoundsException
index - the index of the byte.b - the byte.
java.lang.IndexOutOfBoundsException - if index is negative or greater than or equal to length().
public boolean equals(java.lang.Object object)
throws java.lang.ClassCastException
equals in class java.lang.Objectobject - the object to check.
java.lang.ClassCastException - if the object specified is not a Blob.public boolean equals(Blob blob)
blob - the Blob to check.
public int compareTo(java.lang.Object object)
throws java.lang.ClassCastException
object - the Blob to compare.
java.lang.ClassCastException - if the object specified is not a Blob.public int compareTo(Blob blob)
blob - the Blob to compare.
|
Servertec Persistent Object Store 1.4.1 09/04/2005 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright © 2001-2005 Servertec. All rights reserved.