org.axiondb.types
Class CompressedLobSource

java.lang.Object
  extended by org.axiondb.types.CompressedLobSource
All Implemented Interfaces:
LobSource

public class CompressedLobSource
extends java.lang.Object
implements LobSource

A LobSource that compresses/decompresses the input/output streams using GZIP compression.

Version:
$Revision: 1.3 $ $Date: 2004/09/09 23:47:42 $

Constructor Summary
CompressedLobSource(LobSource source)
           
 
Method Summary
 java.io.InputStream getInputStream()
           
 long length()
           
 java.io.OutputStream setOutputStream(long pos)
           
 void truncate(long length)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompressedLobSource

public CompressedLobSource(LobSource source)
Method Detail

length

public long length()
            throws AxionException
Specified by:
length in interface LobSource
Throws:
AxionException

truncate

public void truncate(long length)
              throws AxionException
Specified by:
truncate in interface LobSource
Throws:
AxionException

getInputStream

public java.io.InputStream getInputStream()
                                   throws AxionException
Specified by:
getInputStream in interface LobSource
Throws:
AxionException

setOutputStream

public java.io.OutputStream setOutputStream(long pos)
                                     throws AxionException
Specified by:
setOutputStream in interface LobSource
Throws:
AxionException