public class FBClob
extends java.lang.Object
implements java.sql.Clob, java.sql.NClob
Clob.
This class also implements NClob so it can be used with the set/get/updateNClob methods
transparently. It technically does not conform to the JDBC requirements for NClob.
| Modifier and Type | Method and Description |
|---|---|
void |
copyCharacterStream(java.io.Reader characterStream) |
void |
copyCharacterStream(java.io.Reader characterStream,
long length)
Copy data from a character stream into this Blob.
|
void |
free() |
java.io.InputStream |
getAsciiStream() |
java.io.Reader |
getCharacterStream() |
java.io.Reader |
getCharacterStream(long pos,
long length) |
java.lang.String |
getSubString(long pos,
int length) |
FBBlob |
getWrappedBlob()
Retrieves the FBBlob wrapped by this FBClob.
|
long |
length() |
long |
position(java.sql.Clob searchstr,
long start) |
long |
position(java.lang.String searchstr,
long start) |
java.io.OutputStream |
setAsciiStream(long pos) |
java.io.Writer |
setCharacterStream(long position) |
int |
setString(long pos,
java.lang.String str) |
int |
setString(long pos,
java.lang.String str,
int offset,
int len) |
void |
truncate(long param1) |
public FBClob(FBBlob blob)
public long length()
throws java.sql.SQLException
length in interface java.sql.Clobjava.sql.SQLExceptionpublic void truncate(long param1)
throws java.sql.SQLException
This operation is not currently supported
truncate in interface java.sql.Clobjava.sql.SQLExceptionpublic java.lang.String getSubString(long pos,
int length)
throws java.sql.SQLException
getSubString in interface java.sql.Clobjava.sql.SQLExceptionpublic java.io.Reader getCharacterStream()
throws java.sql.SQLException
getCharacterStream in interface java.sql.Clobjava.sql.SQLExceptionpublic java.io.InputStream getAsciiStream()
throws java.sql.SQLException
getAsciiStream in interface java.sql.Clobjava.sql.SQLExceptionpublic long position(java.lang.String searchstr,
long start)
throws java.sql.SQLException
Jaybird currently does not support this method.
position in interface java.sql.Clobjava.sql.SQLExceptionpublic long position(java.sql.Clob searchstr,
long start)
throws java.sql.SQLException
Jaybird currently does not support this method.
position in interface java.sql.Clobjava.sql.SQLExceptionpublic int setString(long pos,
java.lang.String str)
throws java.sql.SQLException
Jaybird currently does not support this method.
setString in interface java.sql.Clobjava.sql.SQLExceptionpublic int setString(long pos,
java.lang.String str,
int offset,
int len)
throws java.sql.SQLException
Jaybird currently does not support this method.
setString in interface java.sql.Clobjava.sql.SQLExceptionpublic java.io.OutputStream setAsciiStream(long pos)
throws java.sql.SQLException
setAsciiStream in interface java.sql.Clobjava.sql.SQLExceptionpublic java.io.Writer setCharacterStream(long position)
throws java.sql.SQLException
setCharacterStream in interface java.sql.Clobjava.sql.SQLExceptionpublic void free()
throws java.sql.SQLException
free in interface java.sql.Clobjava.sql.SQLExceptionpublic java.io.Reader getCharacterStream(long pos,
long length)
throws java.sql.SQLException
getCharacterStream in interface java.sql.Clobjava.sql.SQLExceptionpublic void copyCharacterStream(java.io.Reader characterStream,
long length)
throws java.sql.SQLException
Calling with length -1 is equivalent to calling copyCharacterStream(Reader).
characterStream - the source of data to copylength - The maximum number of bytes to copy, or -1 to read the whole streamjava.sql.SQLExceptionpublic void copyCharacterStream(java.io.Reader characterStream)
throws java.sql.SQLException
java.sql.SQLExceptionpublic FBBlob getWrappedBlob() throws java.sql.SQLException
java.sql.SQLExceptionCopyright © 2001-2020 Jaybird (Firebird JDBC/JCA) team. All rights reserved.