java.lang.Object
org.firebirdsql.jdbc.FBClob
- All Implemented Interfaces:
Clob
,NClob
,FirebirdClob
Implementation of
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
.
This class is internal API of Jaybird. Future versions may radically change, move, or make inaccessible this type.
For the public API, refer to the Clob
, NClob
, and FirebirdClob
interfaces.
- Author:
- David Jencks
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
copyCharacterStream
(Reader characterStream) Copy data from a character stream into this Blob.void
copyCharacterStream
(Reader characterStream, long length) Copy data from a character stream into this Blob.void
free()
getCharacterStream
(long pos, long length) getSubString
(long pos, int length) Retrieves the FBBlob wrapped by this FBClob.long
length()
long
long
setAsciiStream
(long pos) setCharacterStream
(long pos) int
int
void
truncate
(long len)
-
Constructor Details
-
FBClob
-
-
Method Details
-
length
- Specified by:
length
in interfaceClob
- Throws:
SQLException
-
truncate
This operation is not currently supported
- Specified by:
truncate
in interfaceClob
- Throws:
SQLException
-
getSubString
- Specified by:
getSubString
in interfaceClob
- Throws:
SQLException
-
getCharacterStream
- Specified by:
getCharacterStream
in interfaceClob
- Throws:
SQLException
-
getAsciiStream
- Specified by:
getAsciiStream
in interfaceClob
- Throws:
SQLException
-
position
Jaybird currently does not support this method.
- Specified by:
position
in interfaceClob
- Throws:
SQLException
-
position
Jaybird currently does not support this method.
- Specified by:
position
in interfaceClob
- Throws:
SQLException
-
setString
Jaybird currently only supports this method for
position == 1
.- Specified by:
setString
in interfaceClob
- Throws:
SQLException
-
setString
Jaybird currently only supports this method for
position == 1
.- Specified by:
setString
in interfaceClob
- Throws:
SQLException
-
setAsciiStream
- Specified by:
setAsciiStream
in interfaceClob
- Throws:
SQLException
-
setCharacterStream
- Specified by:
setCharacterStream
in interfaceClob
- Throws:
SQLException
-
free
- Specified by:
free
in interfaceClob
- Throws:
SQLException
-
getCharacterStream
- Specified by:
getCharacterStream
in interfaceClob
- Throws:
SQLException
-
copyCharacterStream
Copy data from a character stream into this Blob.Calling with length
-1
is equivalent to callingcopyCharacterStream(Reader)
.- Parameters:
characterStream
- the source of data to copylength
- The maximum number of bytes to copy, or-1
to read the whole stream- Throws:
SQLException
-
copyCharacterStream
Copy data from a character stream into this Blob.- Parameters:
characterStream
- the source of data to copy- Throws:
SQLException
-
getWrappedBlob
Retrieves the FBBlob wrapped by this FBClob.- Returns:
- FBBlob instance
- Throws:
SQLException
-