Package org.firebirdsql.jdbc
Class FBClob
- java.lang.Object
- 
- org.firebirdsql.jdbc.FBClob
 
- 
- All Implemented Interfaces:
- java.sql.Clob,- java.sql.NClob
 
 public final class FBClob extends java.lang.Object implements java.sql.Clob, java.sql.NClobImplementation ofClob.This class also implements NClobso it can be used with theset/get/updateNClobmethods transparently. It technically does not conform to the JDBC requirements forNClob.- Author:
- David Jencks
 
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcopyCharacterStream(java.io.Reader characterStream)Copy data from a character stream into this Blob.voidcopyCharacterStream(java.io.Reader characterStream, long length)Copy data from a character stream into this Blob.voidfree()java.io.InputStreamgetAsciiStream()java.io.ReadergetCharacterStream()java.io.ReadergetCharacterStream(long pos, long length)java.lang.StringgetSubString(long pos, int length)FBBlobgetWrappedBlob()Retrieves the FBBlob wrapped by this FBClob.longlength()longposition(java.lang.String searchstr, long start)longposition(java.sql.Clob searchstr, 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 len)voidtruncate(long len)
 
- 
- 
- 
Constructor Detail- 
FBClobpublic FBClob(FBBlob blob) 
 
- 
 - 
Method Detail- 
lengthpublic long length() throws java.sql.SQLException- Specified by:
- lengthin interface- java.sql.Clob
- Throws:
- java.sql.SQLException
 
 - 
truncatepublic void truncate(long len) throws java.sql.SQLExceptionThis operation is not currently supported - Specified by:
- truncatein interface- java.sql.Clob
- Throws:
- java.sql.SQLException
 
 - 
getSubStringpublic java.lang.String getSubString(long pos, int length) throws java.sql.SQLException- Specified by:
- getSubStringin interface- java.sql.Clob
- Throws:
- java.sql.SQLException
 
 - 
getCharacterStreampublic java.io.Reader getCharacterStream() throws java.sql.SQLException- Specified by:
- getCharacterStreamin interface- java.sql.Clob
- Throws:
- java.sql.SQLException
 
 - 
getAsciiStreampublic java.io.InputStream getAsciiStream() throws java.sql.SQLException- Specified by:
- getAsciiStreamin interface- java.sql.Clob
- Throws:
- java.sql.SQLException
 
 - 
positionpublic long position(java.lang.String searchstr, long start) throws java.sql.SQLExceptionJaybird currently does not support this method. - Specified by:
- positionin interface- java.sql.Clob
- Throws:
- java.sql.SQLException
 
 - 
positionpublic long position(java.sql.Clob searchstr, long start) throws java.sql.SQLExceptionJaybird currently does not support this method. - Specified by:
- positionin interface- java.sql.Clob
- Throws:
- java.sql.SQLException
 
 - 
setStringpublic int setString(long pos, java.lang.String str) throws java.sql.SQLExceptionJaybird currently only supports this method for position == 1.- Specified by:
- setStringin interface- java.sql.Clob
- Throws:
- java.sql.SQLException
 
 - 
setStringpublic int setString(long pos, java.lang.String str, int offset, int len) throws java.sql.SQLExceptionJaybird currently only supports this method for position == 1.- Specified by:
- setStringin interface- java.sql.Clob
- Throws:
- java.sql.SQLException
 
 - 
setAsciiStreampublic java.io.OutputStream setAsciiStream(long pos) throws java.sql.SQLException- Specified by:
- setAsciiStreamin interface- java.sql.Clob
- Throws:
- java.sql.SQLException
 
 - 
setCharacterStreampublic java.io.Writer setCharacterStream(long pos) throws java.sql.SQLException- Specified by:
- setCharacterStreamin interface- java.sql.Clob
- Throws:
- java.sql.SQLException
 
 - 
freepublic void free() throws java.sql.SQLException- Specified by:
- freein interface- java.sql.Clob
- Throws:
- java.sql.SQLException
 
 - 
getCharacterStreampublic java.io.Reader getCharacterStream(long pos, long length) throws java.sql.SQLException- Specified by:
- getCharacterStreamin interface- java.sql.Clob
- Throws:
- java.sql.SQLException
 
 - 
copyCharacterStreampublic void copyCharacterStream(java.io.Reader characterStream, long length) throws java.sql.SQLExceptionCopy data from a character stream into this Blob.Calling with length -1is equivalent to callingcopyCharacterStream(Reader).- Parameters:
- characterStream- the source of data to copy
- length- The maximum number of bytes to copy, or- -1to read the whole stream
- Throws:
- java.sql.SQLException
 
 - 
copyCharacterStreampublic void copyCharacterStream(java.io.Reader characterStream) throws java.sql.SQLExceptionCopy data from a character stream into this Blob.- Parameters:
- characterStream- the source of data to copy
- Throws:
- java.sql.SQLException
 
 - 
getWrappedBlobpublic FBBlob getWrappedBlob() throws java.sql.SQLException Retrieves the FBBlob wrapped by this FBClob.- Returns:
- FBBlob instance
- Throws:
- java.sql.SQLException
 
 
- 
 
-