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

Quick Search    Search Deep

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

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

public class LongArrayBufferManager
extends AbstractArrayBufferManager

Gives possibility to read and write a long array using RandomAccess interface


Field Summary
(package private)  long[] 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
LongArrayBufferManager(long[] data)
          Create LongArrayBufferManager with standard tile size
LongArrayBufferManager(long[] data, int size)
           
LongArrayBufferManager(long[] data, int offset, int length)
           
LongArrayBufferManager(long[] data, int offset, int length, int size)
           
 
Method Summary
protected  int readUnitBE(int offset, byte[] dest, int destOffset)
          read appropriate unit (int) in LITTLE_ENDIAN order
protected  int readUnitLE(int offset, byte[] dest, int destOffset)
          read unit (int) in BIG_ENDIAN order
protected  int writeUnitBE(byte[] source, int sourceOffset, int destOffset)
          write appropriate unit (int) in LITTLE_ENDIAN order
protected  int writeUnitLE(byte[] source, int sourceOffset, int destOffset)
          write appropriate unit (int) in BIG_ENDIAN order
 
Methods inherited from class com.imagero.uio.buffer.arrays.AbstractArrayBufferManager
clear, clear, close, flush, flush, getByteOrder, getCount, getData, getDataLength, getDataStart, getIndex, getLength, getMaxCache, getUnitSize, printHex, printHex, printHex, printHex, printHex, printHex, printHex, read, readBE, readLE, setByteOrder, setDirty, setDirty, setMaxCache, write, writeBE, writeLE
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

data

long[] data
Constructor Detail

LongArrayBufferManager

public LongArrayBufferManager(long[] data)
Create LongArrayBufferManager with standard tile size


LongArrayBufferManager

public LongArrayBufferManager(long[] data,
                              int size)

LongArrayBufferManager

public LongArrayBufferManager(long[] data,
                              int offset,
                              int length)

LongArrayBufferManager

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

writeUnitBE

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

Specified by:
writeUnitBE in class AbstractArrayBufferManager

writeUnitLE

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

Specified by:
writeUnitLE in class AbstractArrayBufferManager

readUnitLE

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

Specified by:
readUnitLE in class AbstractArrayBufferManager

readUnitBE

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

Specified by:
readUnitBE in class AbstractArrayBufferManager