public class Blob
extends java.lang.Object
setPersistentClientInfo,
getPersistentClientInfoObject,
and getPersistentClientInfoBlob which set
and get client information as Blobs.| Constructor and Description |
|---|
Blob()
No args constructor.
|
Blob(byte[] byteArray)
Constructs a Blob object and initializes it to the specified
byte[].
|
Blob(java.lang.String stringValue)
Constructs a Blob object and initializes it with the bytearray
got from the specified string.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Blob blob)
Compares two Blob objects and determines whether they are equal.
|
byte[] |
getBytes()
Converts this Blob into bytes and stores it as a byte array.
|
void |
setBytes(byte[] b)
Converts a byte array into a Blob.
|
int |
size()
Returns the current size of the buffer.
|
java.lang.String |
toString()
Returns the buffer as a string.
|
public Blob()
public Blob(java.lang.String stringValue)
throws JdapiException
stringValue - string to initialize the Blob.JdapiExceptionpublic Blob(byte[] byteArray)
throws JdapiException
byteArray - to initialize the Blob.JdapiExceptionpublic byte[] getBytes()
public void setBytes(byte[] b)
throws JdapiException
JdapiExceptionpublic int size()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(Blob blob)
blob - blob to be compared.