com.imagero.uio.buffer
Class RAFBuffer

java.lang.Object
  extended bycom.imagero.uio.buffer.RAFBufferRO
      extended bycom.imagero.uio.buffer.RAFBuffer
All Implemented Interfaces:
Buffer, MutableBuffer

public class RAFBuffer
extends RAFBufferRO
implements MutableBuffer

Implementation of Buffer for RandomAccessFile.


Field Summary
 
Fields inherited from class com.imagero.uio.buffer.RAFBufferRO
raf
 
Constructor Summary
RAFBuffer(java.io.RandomAccessFile ra, long offset, int length)
           
 
Method Summary
 void flush()
           
 boolean isDirty()
           
 void setDirty()
           
protected  void writeData()
           
 
Methods inherited from class com.imagero.uio.buffer.RAFBufferRO
getData, getData, length, readData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.imagero.uio.buffer.Buffer
getData, getData, length
 

Constructor Detail

RAFBuffer

public RAFBuffer(java.io.RandomAccessFile ra,
                 long offset,
                 int length)
Method Detail

flush

public void flush()
           throws java.io.IOException
Specified by:
flush in interface MutableBuffer
Throws:
java.io.IOException

writeData

protected void writeData()
                  throws java.io.IOException
Throws:
java.io.IOException

isDirty

public boolean isDirty()
Specified by:
isDirty in interface Buffer
Overrides:
isDirty in class RAFBufferRO

setDirty

public void setDirty()
Specified by:
setDirty in interface MutableBuffer