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, waitgetLength, openInputStream, openInputStream, openInputStream, openOutputStream, openOutputStream, openOutputStream, setLengthgetLocatorprotected AbstractBlob()
protected AbstractBlob(Repository repo)
repo - optional repository to use for performing string conversion
 within transactionspublic java.lang.String asString()
                          throws FetchException
BlobasString in interface BlobFetchExceptionpublic java.lang.String asString(java.lang.String charsetName)
                          throws FetchException
BlobasString in interface BlobcharsetName - name of character set to decode StringFetchExceptionpublic java.lang.String asString(java.nio.charset.Charset charset)
                          throws FetchException
BlobasString in interface Blobcharset - character set to decode StringFetchExceptionpublic void setValue(java.lang.String value)
              throws PersistException
BlobsetValue in interface Blobvalue - Blob is overwritten with this valuePersistExceptionpublic void setValue(java.lang.String value,
            java.lang.String charsetName)
              throws PersistException
BlobsetValue in interface Blobvalue - Blob is overwritten with this valuecharsetName - name of character set to encode StringPersistExceptionpublic void setValue(java.lang.String value,
            java.nio.charset.Charset charset)
              throws PersistException
BlobsetValue in interface Blobvalue - Blob is overwritten with this valuecharset - character set to encode StringPersistExceptionpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
Lobpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2006-2013 Amazon Technologies, Inc.. All Rights Reserved.