org.axiondb.types
Class ClobSource
java.lang.Object
org.axiondb.jdbc.AbstractAxionClob
org.axiondb.types.ClobSource
- All Implemented Interfaces:
- AxionClob, Clob
- public class ClobSource
- extends AbstractAxionClob
An Clob
wrapping a LobSource
.
- Version:
- $Revision: 1.5 $ $Date: 2003/05/27 19:08:56 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClobSource
public ClobSource(LobSource lob)
setLobSource
public void setLobSource(LobSource lob)
getUtf8Stream
protected InputStream getUtf8Stream()
throws AxionException
- Throws:
AxionException
getAsciiStream
public InputStream getAsciiStream()
throws SQLException
- This method is guaranteed to return an ASCII strream.
The stream returned will throw an IOException
if it encounters non-ASCII characters
in the underlying Clob.
- Specified by:
getAsciiStream
in interface AxionClob
- Overrides:
getAsciiStream
in class AbstractAxionClob
- Throws:
SQLException
getCharacterStream
public Reader getCharacterStream()
throws SQLException
- Specified by:
getCharacterStream
in interface AxionClob
- Overrides:
getCharacterStream
in class AbstractAxionClob
- Throws:
SQLException
setAsciiStream
public OutputStream setAsciiStream(long pos)
throws SQLException
- The behaviour of this method is undefined for non-ASCII
input. Make sure to limit input to ASCII only.
- Specified by:
setAsciiStream
in interface AxionClob
- Overrides:
setAsciiStream
in class AbstractAxionClob
- Throws:
SQLException
setUtf8Stream
public OutputStream setUtf8Stream(long pos)
throws SQLException
- Specified by:
setUtf8Stream
in class AbstractAxionClob
- Throws:
SQLException
- See Also:
AbstractAxionClob.setCharacterStream(long)
length
public long length()
throws SQLException
- Specified by:
length
in interface AxionClob
- Overrides:
length
in class AbstractAxionClob
- Throws:
SQLException
truncate
public void truncate(long length)
throws SQLException
- Specified by:
truncate
in interface AxionClob
- Overrides:
truncate
in class AbstractAxionClob
- Throws:
SQLException