com.imagero.uio.buffer
Class RABufferRO

java.lang.Object
  extended bycom.imagero.uio.buffer.RABufferRO
All Implemented Interfaces:
Buffer
Direct Known Subclasses:
RABuffer

public class RABufferRO
extends java.lang.Object
implements Buffer

Implementation of Buffer for RandomAccessRO.


Constructor Summary
RABufferRO(RandomAccessRO ro, long offset, int length)
           
 
Method Summary
 byte[] getData()
          getData
 byte[] getData(byte[] d)
          copy data to supplied byte array
 boolean isDirty()
           
 int length()
          get length of data
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RABufferRO

public RABufferRO(RandomAccessRO ro,
                  long offset,
                  int length)
Method Detail

getData

public byte[] getData()
               throws java.io.IOException
getData

Specified by:
getData in interface Buffer
Returns:
data
Throws:
java.io.IOException

getData

public byte[] getData(byte[] d)
               throws java.io.IOException
Description copied from interface: Buffer
copy data to supplied byte array

Specified by:
getData in interface Buffer
Parameters:
d - destination array
Returns:
byte array
Throws:
java.io.IOException

length

public int length()
Description copied from interface: Buffer
get length of data

Specified by:
length in interface Buffer
Returns:
length of data

isDirty

public boolean isDirty()
Specified by:
isDirty in interface Buffer