simtools.data.buffer
Class ResizeableBuffer.ResizeableByteManipulator

java.lang.Object
  extended by simtools.data.buffer.Buffer.ByteManipulator
      extended by simtools.data.buffer.SimpleBuffer.SimpleByteManipulator
          extended by simtools.data.buffer.ResizeableBuffer.ResizeableByteManipulator
All Implemented Interfaces:
java.lang.Cloneable, Buffer.Manipulator
Direct Known Subclasses:
DelayedBuffer.DelayedByteManipulator
Enclosing class:
ResizeableBuffer

public class ResizeableBuffer.ResizeableByteManipulator
extends SimpleBuffer.SimpleByteManipulator

This class handles optimization for byte objects.


Field Summary
 
Fields inherited from class simtools.data.buffer.SimpleBuffer.SimpleByteManipulator
buffer
 
Constructor Summary
ResizeableBuffer.ResizeableByteManipulator()
           
 
Method Summary
 byte getValue(long index)
           
 void setSlice(long min, long max)
          Use this function to optimize the buffer on the given index range
 boolean setValue(long index, byte value)
           
 
Methods inherited from class simtools.data.buffer.SimpleBuffer.SimpleByteManipulator
clone
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResizeableBuffer.ResizeableByteManipulator

public ResizeableBuffer.ResizeableByteManipulator()
Method Detail

getValue

public byte getValue(long index)
              throws DataException
Overrides:
getValue in class SimpleBuffer.SimpleByteManipulator
Throws:
DataException

setValue

public boolean setValue(long index,
                        byte value)
                 throws DataException
Overrides:
setValue in class SimpleBuffer.SimpleByteManipulator
Throws:
DataException

setSlice

public void setSlice(long min,
                     long max)
Use this function to optimize the buffer on the given index range

Overrides:
setSlice in class Buffer.ByteManipulator