|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.amazon.carbonado.lob.AbstractClob
com.amazon.carbonado.lob.CharArrayClob
public class CharArrayClob
Implementation of a Clob which is backed by a growable in-memory character array.
| Constructor Summary | |
|---|---|
CharArrayClob(char[] data)
Construct a CharArrayClob initially backed by the given character array. |
|
CharArrayClob(char[] data,
int length)
Construct a CharArrayClob initially backed by the given character array. |
|
CharArrayClob(int capacity)
Construct a CharArrayClob with the given initial capacity. |
|
| Method Summary | |
|---|---|
String |
asString()
Convenience method to capture all the Clob data as a single String. |
long |
getLength()
Returns the length of this Clob, in characters. |
Object |
getLocator()
Always returns null. |
Reader |
openReader()
Returns a Reader for reading Clob data, positioned at the start. |
Reader |
openReader(long pos)
Returns a Reader for reading Clob data. |
Reader |
openReader(long pos,
int bufferSize)
Returns a Reader for reading Clob data. |
Writer |
openWriter()
Returns a Writer for writing Clob data, positioned at the start. |
Writer |
openWriter(long pos)
Returns a Writer for writing Clob data. |
Writer |
openWriter(long pos,
int bufferSize)
Returns a Writer for writing Clob data. |
void |
setLength(long length)
Set the length of this Clob, in characters. |
| Methods inherited from class com.amazon.carbonado.lob.AbstractClob |
|---|
equals, hashCode, setValue, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CharArrayClob(int capacity)
capacity - initial capacity of internal character arraypublic CharArrayClob(char[] data)
data - initial data backing the Clob
public CharArrayClob(char[] data,
int length)
data - initial data backing the Cloblength - initial length of data| Method Detail |
|---|
public Reader openReader()
Clob
public Reader openReader(long pos)
Clob
pos - desired zero-based position to read from
public Reader openReader(long pos,
int bufferSize)
Clob
pos - desired zero-based position to read frombufferSize - suggest that the reader buffer be at least this large (in characters)
public long getLength()
Clob
public String asString()
Clob
asString in interface ClobasString in class AbstractClobpublic Writer openWriter()
Clob
public Writer openWriter(long pos)
Clob
pos - desired zero-based position to write to
public Writer openWriter(long pos,
int bufferSize)
Clob
pos - desired zero-based position to write tobufferSize - suggest that the writer buffer be at least this large (in characters)
public void setLength(long length)
throws PersistException
Clob
length - new length to set to
PersistDeniedException - if Clob is read-only
PersistExceptionpublic Object getLocator()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||