net.jinx.db.record.util
Class RawFileBlob

java.lang.Object
  extended by net.jinx.db.record.util.RawFileBlob
All Implemented Interfaces:
RawBlob

public class RawFileBlob
extends java.lang.Object
implements RawBlob


Constructor Summary
RawFileBlob(java.io.File f)
           
 
Method Summary
 void getBytes(long position, byte[] b)
           
 void getBytes(long position, byte[] b, int offset, int length)
           
 long getSize()
           
 void putBytes(long position, byte[] b)
           
 void putBytes(long position, byte[] b, int offset, int length)
           
 void setSize(long size)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RawFileBlob

public RawFileBlob(java.io.File f)
            throws java.io.FileNotFoundException
Throws:
java.io.FileNotFoundException
Method Detail

getBytes

public void getBytes(long position,
                     byte[] b)
              throws java.io.IOException
Specified by:
getBytes in interface RawBlob
Throws:
java.io.IOException

getBytes

public void getBytes(long position,
                     byte[] b,
                     int offset,
                     int length)
              throws java.io.IOException
Specified by:
getBytes in interface RawBlob
Throws:
java.io.IOException

putBytes

public void putBytes(long position,
                     byte[] b)
              throws java.io.IOException
Specified by:
putBytes in interface RawBlob
Throws:
java.io.IOException

putBytes

public void putBytes(long position,
                     byte[] b,
                     int offset,
                     int length)
              throws java.io.IOException
Specified by:
putBytes in interface RawBlob
Throws:
java.io.IOException

getSize

public long getSize()
             throws java.io.IOException
Specified by:
getSize in interface RawBlob
Throws:
java.io.IOException

setSize

public void setSize(long size)
             throws java.io.IOException
Specified by:
setSize in interface RawBlob
Throws:
java.io.IOException