Package org.apache.derby.iapi.types
Class HarmonySerialClob
- java.lang.Object
-
- org.apache.derby.iapi.types.HarmonySerialClob
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,java.sql.Clob
public class HarmonySerialClob extends java.lang.Object implements java.sql.Clob, java.io.Serializable, java.lang.CloneableCopied from the Harmony project's implementation of javax.sql.rowset.serial.SerialClob at subversion revision 946981.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private char[]bufprivate java.sql.Clobclobprivate longlenprivate longorigLenprivate static longserialVersionUID
-
Constructor Summary
Constructors Constructor Description HarmonySerialClob(char[] ch)HarmonySerialClob(java.lang.String raw)HarmonySerialClob(java.sql.Clob clob)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidcheckValidation()voidfree()java.io.InputStreamgetAsciiStream()java.io.ReadergetCharacterStream()java.io.ReadergetCharacterStream(long pos, long length)java.lang.StringgetSubString(long pos, int length)longlength()private booleanmatch(char[] chars, int start, char[] pattern)longposition(java.lang.String searchString, long start)longposition(java.sql.Clob searchClob, long start)java.io.OutputStreamsetAsciiStream(long pos)java.io.WritersetCharacterStream(long pos)intsetString(long pos, java.lang.String str)intsetString(long pos, java.lang.String str, int offset, int length)voidtruncate(long length)
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
buf
private char[] buf
-
clob
private java.sql.Clob clob
-
len
private long len
-
origLen
private long origLen
-
-
Method Detail
-
length
public long length() throws java.sql.SQLException- Specified by:
lengthin interfacejava.sql.Clob- Throws:
java.sql.SQLException
-
getAsciiStream
public java.io.InputStream getAsciiStream() throws java.sql.SQLException- Specified by:
getAsciiStreamin interfacejava.sql.Clob- Throws:
java.sql.SQLException
-
getCharacterStream
public java.io.Reader getCharacterStream() throws java.sql.SQLException- Specified by:
getCharacterStreamin interfacejava.sql.Clob- Throws:
java.sql.SQLException
-
getSubString
public java.lang.String getSubString(long pos, int length) throws java.sql.SQLException- Specified by:
getSubStringin interfacejava.sql.Clob- Throws:
java.sql.SQLException
-
position
public long position(java.sql.Clob searchClob, long start) throws java.sql.SQLException- Specified by:
positionin interfacejava.sql.Clob- Throws:
java.sql.SQLException
-
position
public long position(java.lang.String searchString, long start) throws java.sql.SQLException, java.sql.SQLException- Specified by:
positionin interfacejava.sql.Clob- Throws:
java.sql.SQLException
-
match
private boolean match(char[] chars, int start, char[] pattern)
-
setAsciiStream
public java.io.OutputStream setAsciiStream(long pos) throws java.sql.SQLException- Specified by:
setAsciiStreamin interfacejava.sql.Clob- Throws:
java.sql.SQLException
-
setCharacterStream
public java.io.Writer setCharacterStream(long pos) throws java.sql.SQLException- Specified by:
setCharacterStreamin interfacejava.sql.Clob- Throws:
java.sql.SQLException
-
setString
public int setString(long pos, java.lang.String str) throws java.sql.SQLException- Specified by:
setStringin interfacejava.sql.Clob- Throws:
java.sql.SQLException
-
setString
public int setString(long pos, java.lang.String str, int offset, int length) throws java.sql.SQLException- Specified by:
setStringin interfacejava.sql.Clob- Throws:
java.sql.SQLException
-
truncate
public void truncate(long length) throws java.sql.SQLException- Specified by:
truncatein interfacejava.sql.Clob- Throws:
java.sql.SQLException
-
free
public void free() throws java.sql.SQLException- Specified by:
freein interfacejava.sql.Clob- Throws:
java.sql.SQLException
-
getCharacterStream
public java.io.Reader getCharacterStream(long pos, long length) throws java.sql.SQLException- Specified by:
getCharacterStreamin interfacejava.sql.Clob- Throws:
java.sql.SQLException
-
checkValidation
private void checkValidation() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
-