org.axiondb.types
Class FileLobSource

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

public class FileLobSource
extends Object
implements LobSource

A LobSource that's backed by a simple File.

Version:
$Revision: 1.4 $ $Date: 2003/07/22 16:57:15 $

Constructor Summary
FileLobSource(File file)
           
 
Method Summary
 File getFile()
           
 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

FileLobSource

public FileLobSource(File file)
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

getFile

public File getFile()