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 TypeMethodDescriptionvoidcopyCharacterStream(Reader characterStream) Copy data from a character stream into this Blob.voidcopyCharacterStream(Reader characterStream, long length) Copy data from a character stream into this Blob.voidfree()getCharacterStream(long pos, long length) getSubString(long pos, int length) Retrieves the FBBlob wrapped by this FBClob.longlength()longlongsetAsciiStream(long pos) setCharacterStream(long pos) intintvoidtruncate(long len)
-
Constructor Details
-
FBClob
-
-
Method Details
-
length
- Specified by:
lengthin interfaceClob- Throws:
SQLException
-
truncate
This operation is not currently supported
- Specified by:
truncatein interfaceClob- Throws:
SQLException
-
getSubString
- Specified by:
getSubStringin interfaceClob- Throws:
SQLException
-
getCharacterStream
- Specified by:
getCharacterStreamin interfaceClob- Throws:
SQLException
-
getAsciiStream
- Specified by:
getAsciiStreamin interfaceClob- Throws:
SQLException
-
position
Jaybird currently does not support this method.
- Specified by:
positionin interfaceClob- Throws:
SQLException
-
position
Jaybird currently does not support this method.
- Specified by:
positionin interfaceClob- Throws:
SQLException
-
setString
Jaybird currently only supports this method for
position == 1.- Specified by:
setStringin interfaceClob- Throws:
SQLException
-
setString
Jaybird currently only supports this method for
position == 1.- Specified by:
setStringin interfaceClob- Throws:
SQLException
-
setAsciiStream
- Specified by:
setAsciiStreamin interfaceClob- Throws:
SQLException
-
setCharacterStream
- Specified by:
setCharacterStreamin interfaceClob- Throws:
SQLException
-
free
- Specified by:
freein interfaceClob- Throws:
SQLException
-
getCharacterStream
- Specified by:
getCharacterStreamin interfaceClob- Throws:
SQLException
-
copyCharacterStream
Copy data from a character stream into this Blob.Calling with length
-1is equivalent to callingcopyCharacterStream(Reader).- Parameters:
characterStream- the source of data to copylength- The maximum number of bytes to copy, or-1to 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
-