simtools.data.buffer
Class SimpleBuffer.SimpleByteManipulator

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

public class SimpleBuffer.SimpleByteManipulator
extends Buffer.ByteManipulator

This class handles optimization for byte objects.


Field Summary
protected  byte[] buffer
           
 
Constructor Summary
SimpleBuffer.SimpleByteManipulator()
           
 
Method Summary
 java.lang.Object clone()
           
 byte getValue(long index)
           
 boolean setValue(long index, byte value)
           
 
Methods inherited from class simtools.data.buffer.Buffer.ByteManipulator
setSlice
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

buffer

protected transient byte[] buffer
Constructor Detail

SimpleBuffer.SimpleByteManipulator

public SimpleBuffer.SimpleByteManipulator()
Method Detail

getValue

public byte getValue(long index)
              throws DataException
Specified by:
getValue in class Buffer.ByteManipulator
Throws:
DataException

setValue

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

clone

public java.lang.Object clone()
Overrides:
clone in class Buffer.ByteManipulator