public abstract class AbstractBlob extends java.lang.Object implements Blob
Modifier | Constructor and Description |
---|---|
protected |
AbstractBlob() |
protected |
AbstractBlob(Repository repo)
Use of this constructor indicates that setValue should operate within a
transaction.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
asString()
Convenience method to capture all the Blob data as a single String,
assuming UTF-8 encoding.
|
java.lang.String |
asString(java.nio.charset.Charset charset)
Convenience method to capture all the Blob data as a single String,
decoded against the given charset.
|
java.lang.String |
asString(java.lang.String charsetName)
Convenience method to capture all the Blob data as a single String,
decoded against the given charset.
|
boolean |
equals(java.lang.Object obj)
Two Lobs are considered equal if the object instances are the same or if
they point to the same content.
|
int |
hashCode() |
void |
setValue(java.lang.String value)
Convenience method to overwrite all Blob data with the value of a single
String, applying UTF-8 encoding.
|
void |
setValue(java.lang.String value,
java.nio.charset.Charset charset)
Convenience method to overwrite all Blob data with the value of a single
String, applying the given charset encoding.
|
void |
setValue(java.lang.String value,
java.lang.String charsetName)
Convenience method to overwrite all Blob data with the value of a single
String, applying the given charset encoding.
|
java.lang.String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getLength, openInputStream, openInputStream, openInputStream, openOutputStream, openOutputStream, openOutputStream, setLength
getLocator
protected AbstractBlob()
protected AbstractBlob(Repository repo)
repo
- optional repository to use for performing string conversion
within transactionspublic java.lang.String asString() throws FetchException
Blob
asString
in interface Blob
FetchException
public java.lang.String asString(java.lang.String charsetName) throws FetchException
Blob
asString
in interface Blob
charsetName
- name of character set to decode StringFetchException
public java.lang.String asString(java.nio.charset.Charset charset) throws FetchException
Blob
asString
in interface Blob
charset
- character set to decode StringFetchException
public void setValue(java.lang.String value) throws PersistException
Blob
setValue
in interface Blob
value
- Blob is overwritten with this valuePersistException
public void setValue(java.lang.String value, java.lang.String charsetName) throws PersistException
Blob
setValue
in interface Blob
value
- Blob is overwritten with this valuecharsetName
- name of character set to encode StringPersistException
public void setValue(java.lang.String value, java.nio.charset.Charset charset) throws PersistException
Blob
setValue
in interface Blob
value
- Blob is overwritten with this valuecharset
- character set to encode StringPersistException
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
Lob
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2006-2013 Amazon Technologies, Inc.. All Rights Reserved.