Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.imagero.uio.buffer
Class RABufferRO  view RABufferRO download RABufferRO.java

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.


Field Summary
(package private)  byte[] data
           
(package private)  int length
           
(package private)  long offset
           
(package private)  com.imagero.uio.RandomAccessRO ro
           
 
Constructor Summary
RABufferRO(com.imagero.uio.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
private  void readData()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ro

com.imagero.uio.RandomAccessRO ro

offset

long offset

length

int length

data

byte[] data
Constructor Detail

RABufferRO

public RABufferRO(com.imagero.uio.RandomAccessRO ro,
                  long offset,
                  int length)
Method Detail

getData

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

Specified by:
getData in interface Buffer

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

length

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

Specified by:
length in interface Buffer

readData

private void readData()
               throws java.io.IOException

isDirty

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