public class CharArrayClob extends AbstractClob
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
asString()
Convenience method to capture all the Clob data as a single String.
|
long |
getLength()
Returns the length of this Clob, in characters.
|
java.lang.Object |
getLocator()
Always returns null.
|
java.io.Reader |
openReader()
Returns a Reader for reading Clob data, positioned at the start.
|
java.io.Reader |
openReader(long pos)
Returns a Reader for reading Clob data.
|
java.io.Reader |
openReader(long pos,
int bufferSize)
Returns a Reader for reading Clob data.
|
java.io.Writer |
openWriter()
Returns a Writer for writing Clob data, positioned at the start.
|
java.io.Writer |
openWriter(long pos)
Returns a Writer for writing Clob data.
|
java.io.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.
|
equals, hashCode, setValue, toString
public CharArrayClob(int capacity)
capacity
- initial capacity of internal character arraypublic CharArrayClob(char[] data)
data
- initial data backing the Clobpublic CharArrayClob(char[] data, int length)
data
- initial data backing the Cloblength
- initial length of datapublic java.io.Reader openReader()
Clob
public java.io.Reader openReader(long pos)
Clob
pos
- desired zero-based position to read frompublic java.io.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 java.lang.String asString()
Clob
asString
in interface Clob
asString
in class AbstractClob
public java.io.Writer openWriter()
Clob
public java.io.Writer openWriter(long pos)
Clob
pos
- desired zero-based position to write topublic java.io.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 toPersistDeniedException
- if Clob is read-onlyPersistException
public java.lang.Object getLocator()
Copyright © 2006-2013 Amazon Technologies, Inc.. All Rights Reserved.