org.axiondb.types

Class ClobSource

public class ClobSource extends AbstractAxionClob

An Clob wrapping a LobSource.

Version: $Revision: 1.6 $ $Date: 2007/11/13 19:04:02 $

Author: Rodney Waldhoff

Constructor Summary
ClobSource(LobSource lob)
Method Summary
InputStreamgetAsciiStream()
This method is guaranteed to return an ASCII strream.
ReadergetCharacterStream()
protected InputStreamgetUtf8Stream()
longlength()
OutputStreamsetAsciiStream(long pos)
The behaviour of this method is undefined for non-ASCII input.
voidsetLobSource(LobSource lob)
OutputStreamsetUtf8Stream(long pos)
voidtruncate(long length)

Constructor Detail

ClobSource

public ClobSource(LobSource lob)

Method Detail

getAsciiStream

public InputStream getAsciiStream()
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.

getCharacterStream

public Reader getCharacterStream()

getUtf8Stream

protected InputStream getUtf8Stream()

length

public long length()

setAsciiStream

public OutputStream setAsciiStream(long pos)
The behaviour of this method is undefined for non-ASCII input. Make sure to limit input to ASCII only.

setLobSource

public void setLobSource(LobSource lob)

setUtf8Stream

public OutputStream setUtf8Stream(long pos)

truncate

public void truncate(long length)