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

Quick Search    Search Deep

com.imagero.uio.buffer.arrays
Class IntArrayBufferManager  view IntArrayBufferManager download IntArrayBufferManager.java

java.lang.Object
  extended bycom.imagero.uio.buffer.arrays.AbstractArrayBufferManager
      extended bycom.imagero.uio.buffer.arrays.IntArrayBufferManager
All Implemented Interfaces:
com.imagero.uio.buffer.BufferManager, com.imagero.uio.buffer.MutableBufferManager

public class IntArrayBufferManager
extends AbstractArrayBufferManager

Gives possibility to read and write an int array using RandomAccess interface


Field Summary
(package private)  int[] data
           
 
Fields inherited from class com.imagero.uio.buffer.arrays.AbstractArrayBufferManager
accessManager, length, offset, TILE_SIZE, tileSize, unitSize
 
Fields inherited from interface com.imagero.uio.buffer.BufferManager
empty
 
Constructor Summary
IntArrayBufferManager(int[] data)
          Create IntArrayBufferManager with standard tile size
IntArrayBufferManager(int[] data, int size)
           
IntArrayBufferManager(int[] data, int offset, int length)
           
IntArrayBufferManager(int[] data, int offset, int length, int size)
           
 
Method Summary
 int getMaxCache()
          get max buffer count
protected  int readUnitBE(int offset, byte[] dest, int destOffset)
          read unit (int) in BIG_ENDIAN order
protected  int readUnitLE(int offset, byte[] dest, int destOffset)
          read appropriate unit (int) in LITTLE_ENDIAN order
 void setMaxCache(int max)
          set max buffer count
protected  int writeUnitBE(byte[] source, int sourceOffset, int destOffset)
          write appropriate unit (int) in BIG_ENDIAN order
protected  int writeUnitLE(byte[] source, int sourceOffset, int destOffset)
          write appropriate unit (int) in LITTLE_ENDIAN order
 
Methods inherited from class com.imagero.uio.buffer.arrays.AbstractArrayBufferManager
clear, clear, close, flush, flush, getByteOrder, getCount, getData, getDataLength, getDataStart, getIndex, getLength, getUnitSize, printHex, printHex, printHex, printHex, printHex, printHex, printHex, read, readBE, readLE, setByteOrder, setDirty, setDirty, write, writeBE, writeLE
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

data

int[] data
Constructor Detail

IntArrayBufferManager

public IntArrayBufferManager(int[] data)
Create IntArrayBufferManager with standard tile size


IntArrayBufferManager

public IntArrayBufferManager(int[] data,
                             int size)

IntArrayBufferManager

public IntArrayBufferManager(int[] data,
                             int offset,
                             int length)

IntArrayBufferManager

public IntArrayBufferManager(int[] data,
                             int offset,
                             int length,
                             int size)
Method Detail

writeUnitLE

protected int writeUnitLE(byte[] source,
                          int sourceOffset,
                          int destOffset)
write appropriate unit (int) in LITTLE_ENDIAN order

Specified by:
writeUnitLE in class AbstractArrayBufferManager

writeUnitBE

protected int writeUnitBE(byte[] source,
                          int sourceOffset,
                          int destOffset)
write appropriate unit (int) in BIG_ENDIAN order

Specified by:
writeUnitBE in class AbstractArrayBufferManager

readUnitBE

protected int readUnitBE(int offset,
                         byte[] dest,
                         int destOffset)
read unit (int) in BIG_ENDIAN order

Specified by:
readUnitBE in class AbstractArrayBufferManager

readUnitLE

protected int readUnitLE(int offset,
                         byte[] dest,
                         int destOffset)
read appropriate unit (int) in LITTLE_ENDIAN order

Specified by:
readUnitLE in class AbstractArrayBufferManager

getMaxCache

public int getMaxCache()
Description copied from interface: com.imagero.uio.buffer.BufferManager
get max buffer count

Specified by:
getMaxCache in interface com.imagero.uio.buffer.BufferManager
Overrides:
getMaxCache in class AbstractArrayBufferManager

setMaxCache

public void setMaxCache(int max)
Description copied from interface: com.imagero.uio.buffer.BufferManager
set max buffer count

Specified by:
setMaxCache in interface com.imagero.uio.buffer.BufferManager
Overrides:
setMaxCache in class AbstractArrayBufferManager