Package oracle.forms.jdapi
Class Blob
java.lang.Object
oracle.forms.jdapi.Blob
Blob utility class. The purpose of this class is to provide additional Blob support
for methods such as
setPersistentClientInfo,
getPersistentClientInfoObject,
and getPersistentClientInfoBlob which set
and get client information as Blobs.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompares two Blob objects and determines whether they are equal.byte[]getBytes()Converts this Blob into bytes and stores it as a byte array.voidsetBytes(byte[] b) Converts a byte array into a Blob.intsize()Returns the current size of the buffer.toString()Returns the buffer as a string.
-
Constructor Details
-
Blob
public Blob()No args constructor. -
Blob
Constructs a Blob object and initializes it with the bytearray obtained from the specified string. While converting the string to a bytearray the platform's default character encoding is used.- Parameters:
stringValue- string to initialize the Blob.- Throws:
JdapiException
-
Blob
Constructs a Blob object and initializes it to the specifiedbyte[].- Parameters:
byteArray- to initialize the Blob.- Throws:
JdapiException
-
-
Method Details
-
getBytes
public byte[] getBytes()Converts this Blob into bytes and stores it as a byte array.- Returns:
- a byte array.
-
setBytes
Converts a byte array into a Blob.- Throws:
JdapiException
-
size
public int size()Returns the current size of the buffer.- Returns:
- the count of the buffer field, which is the number of valid bytes in this output stream.
-
toString
Returns the buffer as a string. -
equals
Compares two Blob objects and determines whether they are equal.- Parameters:
blob- blob to be compared.- Returns:
trueif the two objects are equal;falseotherwise.
-