Package com.epam.fix.message
Class ExtendedIndexedStorage
java.lang.Object
com.epam.fix.message.IndexedStorage
com.epam.fix.message.ExtendedIndexedStorage
- Direct Known Subclasses:
HPExtendedIndexedStorage
Created by IntelliJ IDEA.
User: Alexander_Sereda
Date: 26.10.12
Time: 11:11
To change this template use File | Settings | File Templates.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.epam.fix.message.IndexedStorage
IndexedStorage.MISSING_TAG_HANDLING
-
Field Summary
FieldsFields inherited from class com.epam.fix.message.IndexedStorage
FIELD_SEPARATOR, NOTFOUND
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal int
addTag
(int tagId, boolean value) final int
addTag
(int tagId, byte[] value) final int
final int
addTagAtIndex
(int index, int tagId, boolean value) final int
addTagAtIndex
(int index, int tagId, byte[] value) final int
addTagAtIndex
(int index, TagValue tagValue) final byte[]
getBytes
(int tagId) Deprecated.use #getTagValueAsBytes(int)final long
Gets message sequence number.final byte[]
Deprecated.use #getMsgType(byte[])final int
getMsgType
(byte[] msgType) final FIXVersion
Gets message fix version.final BigDecimal
getTagValueAsBigDecimal
(int tag) final BigDecimal
getTagValueAsBigDecimal
(int tag, int occurrence) final boolean
getTagValueAsBool
(int tag) final boolean
getTagValueAsBool
(int tagId, int occurrence) final byte
getTagValueAsByte
(int tag) final byte
getTagValueAsByte
(int tag, int offset) final byte
getTagValueAsByte
(int tagId, int offset, int occurrence) final byte
getTagValueAsByteAtIndex
(int index) final byte[]
getTagValueAsBytes
(int tag) final int
getTagValueAsBytes
(int tag, byte[] dest, int offset) final byte[]
getTagValueAsBytes
(int tagId, int occurrence) final int
getTagValueAsBytes
(int tagId, int occurrence, byte[] dest, int offset) void
getTagValueAsDateOnly
(int tagId, int occurrence, Calendar cal) void
getTagValueAsDateOnly
(int tag, Calendar cal) void
getTagValueAsDateOnlyAtIndex
(int index, Calendar cal) final double
getTagValueAsDouble
(int tag) final double
getTagValueAsDouble
(int tagId, int occurrence) final int
getTagValueAsInt
(int tag) final int
getTagValueAsInt
(int tag, int occurrence) final int
getTagValueAsIntAtIndex
(int index) void
getTagValueAsLocalMktTime
(int tagId, int occurrence, Calendar cal) void
getTagValueAsLocalMktTime
(int tag, Calendar cal) void
getTagValueAsLocalMktTimeAtIndex
(int index, Calendar cal) final long
getTagValueAsLong
(int tag) final long
getTagValueAsLong
(int tagId, int occurrence) void
getTagValueAsMonthYear
(int tagId, int occurrence, Calendar cal) void
getTagValueAsMonthYear
(int tag, Calendar cal) void
getTagValueAsMonthYearAtIndex
(int index, Calendar cal) final void
getTagValueAsReusableString
(ReusableString reusableString, int tagId) Sets the value in provided ReusableString.final void
getTagValueAsReusableString
(ReusableString reusableString, int tagId, int occurrence) Sets the value in provided ReusableString.final String
getTagValueAsString
(int tagId) final String
getTagValueAsString
(int tagId, int occurrence) final void
getTagValueAsStringBuff
(int tag, StringBuffer str) final void
getTagValueAsStringBuff
(int tagId, StringBuffer str, int occurrence) getTagValueAsTenor
(int tag) getTagValueAsTenor
(int tagId, int occurrence) getTagValueAsTenorAtIndex
(int index) void
getTagValueAsTimeOnly
(int tagId, int occurrence, Calendar cal) void
getTagValueAsTimeOnly
(int tag, Calendar cal) void
getTagValueAsTimeOnlyAtIndex
(int index, Calendar cal) void
getTagValueAsTimestamp
(int tagId, int occurrence, Calendar cal) void
getTagValueAsTimestamp
(int tag, Calendar cal) void
getTagValueAsTimestampAtIndex
(int index, Calendar cal) void
getTagValueAsTZTimeOnly
(int tagId, int occurrence, Calendar cal) void
getTagValueAsTZTimeOnly
(int tag, Calendar cal) void
getTagValueAsTZTimeOnlyAtIndex
(int index, Calendar cal) void
getTagValueAsTZTimestamp
(int tagId, int occurrence, Calendar cal) void
getTagValueAsTZTimestamp
(int tag, Calendar cal) void
getTagValueAsTZTimestampAtIndex
(int index, Calendar cal) boolean
hasTagValue
(int tagId) boolean
isTagValueEqual
(int tagId, byte[] value) final void
set
(int tagId, boolean value) final void
set
(int tagId, byte value) final void
set
(int tagId, byte[] value) final void
set
(int tagId, byte[] value, int offset, int length) final void
set
(int tagId, char value) final void
set
(int tagId, double value, int precision) final void
set
(int tagId, int value) final void
set
(int tagId, int occurrence, boolean value) final void
set
(int tagId, int occurrence, byte value) final void
set
(int tagId, int occurrence, byte[] value) final void
set
(int tagId, int occurrence, byte[] value, int offset, int length) final void
set
(int tagId, int occurrence, char value) final void
set
(int tagId, int occurrence, double value, int precision) final void
set
(int tagId, int occurrence, int value) final void
set
(int tagId, int occurrence, long value) final void
set
(int tagId, int occurrence, CharSequence value) final void
final void
final void
set
(int tagId, int occurrence, Period value, TenorPrecision precision) final void
set
(int tagId, int occurrence, Calendar value, FIXDateFormatterFactory.FIX_DATE_TYPE type) final void
set
(int tagId, long value) final void
final void
set
(int tagId, CharSequence value) final void
final void
set
(int tagId, StringBuffer value) final void
final void
set
(int tagId, Period value, TenorPrecision precision) final void
set
(int tagId, Calendar value, FIXDateFormatterFactory.FIX_DATE_TYPE type) final void
final void
setAtIndex
(int index, boolean value) final void
setAtIndex
(int index, byte value) final void
setAtIndex
(int index, byte[] value) final void
setAtIndex
(int index, byte[] value, int offset, int length) final void
setAtIndex
(int index, char value) final void
setAtIndex
(int index, double value, int precision) final void
setAtIndex
(int index, int value) final void
setAtIndex
(int index, long value) final void
setAtIndex
(int tagIndex, TagValue value) final void
setAtIndex
(int tagIndex, CharSequence value) final void
setAtIndex
(int index, String value) final void
setAtIndex
(int index, Period value, TenorPrecision precision) final void
setAtIndex
(int index, Calendar value, FIXDateFormatterFactory.FIX_DATE_TYPE type) Methods inherited from class com.epam.fix.message.IndexedStorage
addRepeatingGroup, addRepeatingGroup, addRepeatingGroup, addRepeatingGroup, addRepeatingGroupAtIndex, addRepeatingGroupAtIndex, addRepeatingGroupAtIndex, addRepeatingGroupAtIndex, addTag, addTag, addTag, addTag, addTag, addTag, addTag, addTag, addTag, addTag, addTag, addTag, addTag, addTagAtIndex, addTagAtIndex, addTagAtIndex, addTagAtIndex, addTagAtIndex, addTagAtIndex, addTagAtIndex, addTagAtIndex, addTagAtIndex, addTagAtIndex, addTagAtIndex, addTagAtIndex, addTagAtIndex, addTagAtIndexForRg, canCopyInPlace, canCopyInPlaceNumber, canCopyInPlaceWithLengthReducing, clear, clearUnserializableTags, copyRepeatingGroup, copyRepeatingGroup, copyRepeatingGroup, copyRepeatingGroup, deepCopy, ensureCapacityAndEnlarge, ensureCapacityAndEnlarge, equals, fillSubStorage, findOrPrepareToAdd, findOrPrepareToAdd, genericMessageToByteArrayAndReturnNextPosition, getFieldIndexData, getFIXVersion, getIndexCapacity, getNumOfGroup, getOrAddRepeatingGroup, getOrAddRepeatingGroup, getOrAddRepeatingGroupAtIndex, getOrAddRepeatingGroupAtIndex, getRawLength, getRepeatingGroup, getRepeatingGroup, getRepeatingGroupAtIndex, getRepeatingGroupAtIndex, getSize, getStorage, getStorageType, getTag, getTag, getTagAtIndex, getTagIdAtIndex, getTagIndex, getTagIndex, getTagIndexBetween, getTagIndexStartingFrom, getTagValueAsBigDecimalAtIndex, getTagValueAsBoolAtIndex, getTagValueAsByteAtIndex, getTagValueAsBytesAtIndex, getTagValueAsBytesAtIndex, getTagValueAsDoubleAtIndex, getTagValueAsLongAtIndex, getTagValueAsReusableStringAtIndex, getTagValueAsStringAtIndex, getTagValueAsStringBuffAtIndex, getTagValueAtIndex, getTagValueLength, getTagValueLength, getTagValueLengthAtIndex, getTagValueOffsetAtIndex, hashCode, invalidateRepeatingGroupIndex, isAllTagsInOneBuffer, isRepeatingGroupExists, isTagExists, isTagExists, mapPreparedTagInOrigStorage, mapTagInOrigStorage, markUnserializableTag, onEnlarge, preparedToByteArrayAndReturnNextPosition, preparedToByteArrayAndReturnNextPosition2, removeRepeatingGroup, removeRepeatingGroupAtIndex, removeTag, removeTag, removeTagAtIndex, removeTagAtIndex, reserveTagAtIndex, reserveTagAtIndex, reserveTagAtIndexForRg, setOriginalBuffer, toByteArrayAndReturnNextPosition, transferDataToArena, updateValue, updateValue, updateValue, updateValue, updateValue, updateValue, updateValue, updateValue, updateValue, updateValue, updateValue, updateValue, updateValue, updateValue, updateValue, updateValue, updateValue, updateValue, updateValue, updateValue, updateValue, updateValue, updateValue, updateValue, updateValue, updateValue, updateValueAtIndex, updateValueAtIndex, updateValueAtIndex, updateValueAtIndex, updateValueAtIndex, updateValueAtIndex, updateValueAtIndex, updateValueAtIndex, updateValueAtIndex, updateValueAtIndex, updateValueAtIndex, updateValueAtIndex, updateValueAtIndex
-
Field Details
-
NOT_AN_INT_VALUE_ERROR
- See Also:
-
-
Constructor Details
-
ExtendedIndexedStorage
protected ExtendedIndexedStorage(int initialSize)
-
-
Method Details
-
getTagValueAsBytes
public final byte[] getTagValueAsBytes(int tag) -
getTagValueAsBytes
public final int getTagValueAsBytes(int tag, byte[] dest, int offset) - Parameters:
tag
-dest
-offset
-- Returns:
- value length
- Throws:
FieldNotFoundException
-
getTagValueAsBytes
public final byte[] getTagValueAsBytes(int tagId, int occurrence) -
getTagValueAsBytes
public final int getTagValueAsBytes(int tagId, int occurrence, byte[] dest, int offset) -
getTagValueAsByte
public final byte getTagValueAsByte(int tag) -
getTagValueAsByte
public final byte getTagValueAsByte(int tag, int offset) -
getTagValueAsByte
public final byte getTagValueAsByte(int tagId, int offset, int occurrence) -
getTagValueAsByteAtIndex
public final byte getTagValueAsByteAtIndex(int index) -
getTagValueAsBool
public final boolean getTagValueAsBool(int tag) -
getTagValueAsBool
public final boolean getTagValueAsBool(int tagId, int occurrence) -
getTagValueAsDouble
public final double getTagValueAsDouble(int tag) -
getTagValueAsDouble
public final double getTagValueAsDouble(int tagId, int occurrence) -
getTagValueAsBigDecimal
-
getTagValueAsBigDecimal
-
getTagValueAsLong
public final long getTagValueAsLong(int tag) -
getTagValueAsLong
public final long getTagValueAsLong(int tagId, int occurrence) -
getTagValueAsInt
public final int getTagValueAsInt(int tag) -
getTagValueAsInt
public final int getTagValueAsInt(int tag, int occurrence) -
getTagValueAsIntAtIndex
public final int getTagValueAsIntAtIndex(int index) -
getTagValueAsStringBuff
-
getTagValueAsStringBuff
-
getTagValueAsReusableString
Sets the value in provided ReusableString. The method can be used for obtaining string values without creating a new object (to avoid garbage).- Parameters:
tagId
- number of tag for which the value will be obtained.- Throws:
FieldNotFoundException
- if there is no value for specified tag.
-
getTagValueAsReusableString
public final void getTagValueAsReusableString(ReusableString reusableString, int tagId, int occurrence) Sets the value in provided ReusableString. The method can be used for obtaining string values without creating a new object (to avoid garbage).- Parameters:
tagId
- number of tag for which the value will be obtained.occurrence
- value occurrence of specified tag. Numeration starts with 1.- Throws:
FieldNotFoundException
- if there is no value for specified tag.
-
getTagValueAsString
-
getTagValueAsString
-
getTagValueAsDateOnly
-
getTagValueAsDateOnly
-
getTagValueAsDateOnlyAtIndex
-
getTagValueAsTimeOnly
-
getTagValueAsTimeOnly
-
getTagValueAsTimeOnlyAtIndex
-
getTagValueAsLocalMktTime
-
getTagValueAsLocalMktTime
-
getTagValueAsLocalMktTimeAtIndex
-
getTagValueAsTimestamp
-
getTagValueAsTimestamp
-
getTagValueAsTimestampAtIndex
-
getTagValueAsMonthYear
-
getTagValueAsMonthYear
-
getTagValueAsMonthYearAtIndex
-
getTagValueAsTenor
-
getTagValueAsTenor
-
getTagValueAsTenorAtIndex
-
getTagValueAsTZTimeOnly
-
getTagValueAsTZTimeOnly
-
getTagValueAsTZTimeOnlyAtIndex
-
getTagValueAsTZTimestamp
-
getTagValueAsTZTimestamp
-
getTagValueAsTZTimestampAtIndex
-
isTagValueEqual
public boolean isTagValueEqual(int tagId, byte[] value) -
hasTagValue
public boolean hasTagValue(int tagId) -
addTag
public final int addTag(int tagId, byte[] value) -
addTagAtIndex
public final int addTagAtIndex(int index, int tagId, byte[] value) -
addTag
public final int addTag(int tagId, boolean value) -
addTagAtIndex
public final int addTagAtIndex(int index, int tagId, boolean value) -
addTag
-
addTagAtIndex
-
set
public final void set(int tagId, byte value) -
set
public final void set(int tagId, int occurrence, byte value) -
setAtIndex
public final void setAtIndex(int index, byte value) -
set
public final void set(int tagId, char value) -
set
public final void set(int tagId, int occurrence, char value) -
setAtIndex
public final void setAtIndex(int index, char value) -
set
public final void set(int tagId, byte[] value) -
set
public final void set(int tagId, int occurrence, byte[] value) -
setAtIndex
public final void setAtIndex(int index, byte[] value) -
set
public final void set(int tagId, byte[] value, int offset, int length) -
set
public final void set(int tagId, int occurrence, byte[] value, int offset, int length) -
setAtIndex
public final void setAtIndex(int index, byte[] value, int offset, int length) -
set
public final void set(int tagId, long value) -
set
public final void set(int tagId, int occurrence, long value) -
setAtIndex
public final void setAtIndex(int index, long value) -
set
public final void set(int tagId, int value) -
set
public final void set(int tagId, int occurrence, int value) -
setAtIndex
public final void setAtIndex(int index, int value) -
set
public final void set(int tagId, double value, int precision) -
set
public final void set(int tagId, int occurrence, double value, int precision) -
setAtIndex
public final void setAtIndex(int index, double value, int precision) -
set
-
set
-
set
-
setAtIndex
-
set
public final void set(int tagId, boolean value) -
set
public final void set(int tagId, int occurrence, boolean value) -
setAtIndex
public final void setAtIndex(int index, boolean value) -
set
-
set
-
setAtIndex
-
set
-
set
-
setAtIndex
-
set
-
set
public final void set(int tagId, int occurrence, Calendar value, FIXDateFormatterFactory.FIX_DATE_TYPE type) -
setAtIndex
-
set
-
set
-
set
-
set
-
setAtIndex
-
getMsgType
public final int getMsgType(byte[] msgType) -
getMsgType
Deprecated.use #getMsgType(byte[])Gets message type.- Returns:
- message type or null if tag 35 not exists.
-
getBytes
Deprecated.use #getTagValueAsBytes(int)- Parameters:
tagId
-- Returns:
-
getMsgVersion
Gets message fix version.- Returns:
- FIXVersion if 9 tg exists
- Throws:
IllegalArgumentException
- if version is invalid.
-
getMsgSeqNumber
public final long getMsgSeqNumber()Gets message sequence number.- Returns:
- sequence number if field exist and -1 if doesn't.
-