com.epam.fix.message.storage
Class PerFieldMessageStorage

java.lang.Object
  extended by com.epam.fix.message.MessageStorage
      extended by com.epam.fix.message.storage.ByteBufferStorage
          extended by com.epam.fix.message.storage.PerFieldMessageStorage

public class PerFieldMessageStorage
extends ByteBufferStorage

Created by IntelliJ IDEA. User: Alexander_Sereda Date: 26.10.12 Time: 13:36 To change this template use File | Settings | File Templates.


Field Summary
protected  ByteBuffer[] perFieldStorage
           
protected static int PERFIRLD_STORAGE_GROW_INCREMENT
           
protected static int PERFIRLD_STORAGE_INITIAL_SIZE
           
 
Constructor Summary
PerFieldMessageStorage(int initialSize)
           
 
Method Summary
 void add(int tagIndex, byte[] value, int offset, int length)
           
 void clear(int index)
           
 void clearAll()
           
 void copy(PerFieldMessageStorage srcStorage)
           
 void enlarge(int ratio)
           
 byte[] getByteArray(int index)
           
protected  ByteBuffer getByteBuffer(int tagIndex)
           
 void init(int tagIndex)
           
 boolean isEmpty()
           
protected  ByteBuffer newPerFieldStorage()
           
 void setValue(int tagIndex, long value, int length)
           
 void shift(int index, int offset, int filledSize)
           
 void shiftBack(int index, int offset, int filledSize)
           
 
Methods inherited from class com.epam.fix.message.storage.ByteBufferStorage
setValue, setValue, setValue, setValue
 
Methods inherited from class com.epam.fix.message.MessageStorage
getAsBoolean, getAsByte, getAsByteArray, getAsDouble, getAsLong, getAsString, getAsStringBuffer, updateValue, updateValue, updateValue, updateValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PERFIRLD_STORAGE_INITIAL_SIZE

protected static final int PERFIRLD_STORAGE_INITIAL_SIZE
See Also:
Constant Field Values

PERFIRLD_STORAGE_GROW_INCREMENT

protected static final int PERFIRLD_STORAGE_GROW_INCREMENT
See Also:
Constant Field Values

perFieldStorage

protected ByteBuffer[] perFieldStorage
Constructor Detail

PerFieldMessageStorage

public PerFieldMessageStorage(int initialSize)
Method Detail

enlarge

public void enlarge(int ratio)

shift

public void shift(int index,
                  int offset,
                  int filledSize)

shiftBack

public void shiftBack(int index,
                      int offset,
                      int filledSize)

getByteArray

public byte[] getByteArray(int index)
Specified by:
getByteArray in class MessageStorage

clearAll

public void clearAll()
Specified by:
clearAll in class MessageStorage

clear

public void clear(int index)

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in class MessageStorage

add

public void add(int tagIndex,
                byte[] value,
                int offset,
                int length)
Specified by:
add in class MessageStorage

setValue

public void setValue(int tagIndex,
                     long value,
                     int length)
Overrides:
setValue in class ByteBufferStorage

getByteBuffer

protected ByteBuffer getByteBuffer(int tagIndex)
Specified by:
getByteBuffer in class ByteBufferStorage

init

public void init(int tagIndex)

newPerFieldStorage

protected ByteBuffer newPerFieldStorage()

copy

public void copy(PerFieldMessageStorage srcStorage)


Copyright © 2000-2014 EPAM Systems. All Rights Reserved.