org.axiondb.types
Class ClobSource

java.lang.Object
  extended byorg.axiondb.jdbc.AbstractAxionClob
      extended byorg.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 $

Constructor Summary
ClobSource(LobSource lob)
           
 
Method Summary
 InputStream getAsciiStream()
          This method is guaranteed to return an ASCII strream.
 Reader getCharacterStream()
           
protected  InputStream getUtf8Stream()
           
 long length()
           
 OutputStream setAsciiStream(long pos)
          The behaviour of this method is undefined for non-ASCII input.
 void setLobSource(LobSource lob)
           
 OutputStream setUtf8Stream(long pos)
           
 void truncate(long length)
           
 
Methods inherited from class org.axiondb.jdbc.AbstractAxionClob
getSubString, position, position, setCharacterStream, setString, setString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClobSource

public ClobSource(LobSource lob)
Method Detail

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