com.crankuptheamps.client
Class NVFIXBuilder

java.lang.Object
  extended by com.crankuptheamps.client.NVFIXBuilder

public class NVFIXBuilder
extends Object


Constructor Summary
NVFIXBuilder(int capacity, byte fieldSeparator)
           
 
Method Summary
 NVFIXBuilder append(String tag, byte[] value, int offset, int length)
          Appends a tag and value pair contained within a byte buffer to the FIX message.
 NVFIXBuilder append(String tag, String value)
          Appends a tag and value pair to the FIX message.
 void clear()
          Clears the current builder, resetting it to empty.
 byte[] getBytes()
           
 int getSize()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NVFIXBuilder

public NVFIXBuilder(int capacity,
                    byte fieldSeparator)
Method Detail

clear

public void clear()
Clears the current builder, resetting it to empty.


getSize

public int getSize()

getBytes

public byte[] getBytes()

append

public NVFIXBuilder append(String tag,
                           byte[] value,
                           int offset,
                           int length)
                    throws CommandException
Appends a tag and value pair contained within a byte buffer to the FIX message.

Parameters:
tag - the String NVFIX tag to append
value - the byte buffer containing the FIX value to append.
offset - the starting location of the value inside the byte buffer.
length - the length of the value inside the byte buffer.
Returns:
a reference to this object.
Throws:
CommandException - if the tag or value argument is not convertible to ISO-8859-1.

append

public NVFIXBuilder append(String tag,
                           String value)
                    throws CommandException
Appends a tag and value pair to the FIX message.

Parameters:
tag - the string FIX tag to append
value - the FIX value for the tag to append. The value will be converted to an ISO-8859-1 byte array for writing.
Returns:
a reference to this object.
Throws:
CommandException - if the tag or value argument is not convertible to ISO-8859-1.