org.axiondb.types
Class FileOffsetLobSource

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

public class FileOffsetLobSource
extends Object
implements LobSource

A LobSource that's backed by a single file, storing each LOB as an offset and length.

Version:
$Revision: 1.4 $ $Date: 2005/04/13 00:42:58 $

Constructor Summary
FileOffsetLobSource(BufferedDataInputStream in, long offset, int length)
           
 
Method Summary
 InputStream getInputStream()
           
 long length()
           
 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

FileOffsetLobSource

public FileOffsetLobSource(BufferedDataInputStream in,
                           long offset,
                           int length)
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 InputStream getInputStream()
                           throws AxionException
Specified by:
getInputStream in interface LobSource
Throws:
AxionException

setOutputStream

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