Class ExtendedIndexedStorage

java.lang.Object
com.epam.fix.message.IndexedStorage
com.epam.fix.message.ExtendedIndexedStorage
Direct Known Subclasses:
HPExtendedIndexedStorage

public abstract class ExtendedIndexedStorage extends IndexedStorage
Created by IntelliJ IDEA. User: Alexander_Sereda Date: 26.10.12 Time: 11:11 To change this template use File | Settings | File Templates.
  • Field Details

  • 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

      public final BigDecimal getTagValueAsBigDecimal(int tag)
    • getTagValueAsBigDecimal

      public final BigDecimal getTagValueAsBigDecimal(int tag, int occurrence)
    • 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

      public final void getTagValueAsStringBuff(int tag, StringBuffer str)
    • getTagValueAsStringBuff

      public final void getTagValueAsStringBuff(int tagId, StringBuffer str, int occurrence)
    • getTagValueAsReusableString

      public final void getTagValueAsReusableString(ReusableString reusableString, int tagId)
      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

      public final String getTagValueAsString(int tagId, int occurrence)
    • getTagValueAsString

      public final String getTagValueAsString(int tagId)
    • getTagValueAsDateOnly

      public void getTagValueAsDateOnly(int tag, Calendar cal)
    • getTagValueAsDateOnly

      public void getTagValueAsDateOnly(int tagId, int occurrence, Calendar cal)
    • getTagValueAsDateOnlyAtIndex

      public void getTagValueAsDateOnlyAtIndex(int index, Calendar cal)
    • getTagValueAsTimeOnly

      public void getTagValueAsTimeOnly(int tag, Calendar cal)
    • getTagValueAsTimeOnly

      public void getTagValueAsTimeOnly(int tagId, int occurrence, Calendar cal)
    • getTagValueAsTimeOnlyAtIndex

      public void getTagValueAsTimeOnlyAtIndex(int index, Calendar cal)
    • getTagValueAsLocalMktTime

      public void getTagValueAsLocalMktTime(int tag, Calendar cal)
    • getTagValueAsLocalMktTime

      public void getTagValueAsLocalMktTime(int tagId, int occurrence, Calendar cal)
    • getTagValueAsLocalMktTimeAtIndex

      public void getTagValueAsLocalMktTimeAtIndex(int index, Calendar cal)
    • getTagValueAsTimestamp

      public void getTagValueAsTimestamp(int tag, Calendar cal)
    • getTagValueAsTimestamp

      public void getTagValueAsTimestamp(int tagId, int occurrence, Calendar cal)
    • getTagValueAsTimestampAtIndex

      public void getTagValueAsTimestampAtIndex(int index, Calendar cal)
    • getTagValueAsMonthYear

      public void getTagValueAsMonthYear(int tag, Calendar cal)
    • getTagValueAsMonthYear

      public void getTagValueAsMonthYear(int tagId, int occurrence, Calendar cal)
    • getTagValueAsMonthYearAtIndex

      public void getTagValueAsMonthYearAtIndex(int index, Calendar cal)
    • getTagValueAsTenor

      public Period getTagValueAsTenor(int tag)
    • getTagValueAsTenor

      public Period getTagValueAsTenor(int tagId, int occurrence)
    • getTagValueAsTenorAtIndex

      public Period getTagValueAsTenorAtIndex(int index)
    • getTagValueAsTZTimeOnly

      public void getTagValueAsTZTimeOnly(int tag, Calendar cal)
    • getTagValueAsTZTimeOnly

      public void getTagValueAsTZTimeOnly(int tagId, int occurrence, Calendar cal)
    • getTagValueAsTZTimeOnlyAtIndex

      public void getTagValueAsTZTimeOnlyAtIndex(int index, Calendar cal)
    • getTagValueAsTZTimestamp

      public void getTagValueAsTZTimestamp(int tag, Calendar cal)
    • getTagValueAsTZTimestamp

      public void getTagValueAsTZTimestamp(int tagId, int occurrence, Calendar cal)
    • getTagValueAsTZTimestampAtIndex

      public void getTagValueAsTZTimestampAtIndex(int index, Calendar cal)
    • 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

      public final int addTag(TagValue tagValue)
    • addTagAtIndex

      public final int addTagAtIndex(int index, TagValue tagValue)
    • 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

      public final void set(int tagId, StringBuffer value)
    • set

      public final void set(int tagId, CharSequence value)
    • set

      public final void set(int tagId, int occurrence, CharSequence value)
    • setAtIndex

      public final void setAtIndex(int tagIndex, CharSequence value)
    • 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

      public final void set(TagValue value)
    • set

      public final void set(int occurrence, TagValue value)
    • setAtIndex

      public final void setAtIndex(int tagIndex, TagValue value)
    • set

      public final void set(int tagId, String value)
    • set

      public final void set(int tagId, int occurrence, String value)
    • setAtIndex

      public final void setAtIndex(int index, String value)
    • set

      public final void set(int tagId, Calendar value, FIXDateFormatterFactory.FIX_DATE_TYPE type)
    • set

      public final void set(int tagId, int occurrence, Calendar value, FIXDateFormatterFactory.FIX_DATE_TYPE type)
    • setAtIndex

      public final void setAtIndex(int index, Calendar value, FIXDateFormatterFactory.FIX_DATE_TYPE type)
    • set

      public final void set(int tagId, Period value)
    • set

      public final void set(int tagId, Period value, TenorPrecision precision)
    • set

      public final void set(int tagId, int occurrence, Period value)
    • set

      public final void set(int tagId, int occurrence, Period value, TenorPrecision precision)
    • setAtIndex

      public final void setAtIndex(int index, Period value, TenorPrecision precision)
    • getMsgType

      public final int getMsgType(byte[] msgType)
    • getMsgType

      @Deprecated public final byte[] getMsgType()
      Deprecated.
      use #getMsgType(byte[])
      Gets message type.
      Returns:
      message type or null if tag 35 not exists.
    • getBytes

      @Deprecated public final byte[] getBytes(int tagId)
      Deprecated.
      use #getTagValueAsBytes(int)
      Parameters:
      tagId -
      Returns:
    • getMsgVersion

      public final FIXVersion 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.