simtools.data.buffer
Class SimpleBuffer.SimpleByteManipulator
java.lang.Object
simtools.data.buffer.Buffer.ByteManipulator
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
|
Method Summary |
java.lang.Object |
clone()
|
byte |
getValue(long index)
|
boolean |
setValue(long index,
byte value)
|
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
buffer
protected transient byte[] buffer
SimpleBuffer.SimpleByteManipulator
public SimpleBuffer.SimpleByteManipulator()
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