com.crankuptheamps.client
Class NVFIXBuilder
java.lang.Object
com.crankuptheamps.client.NVFIXBuilder
public class NVFIXBuilder
- extends Object
Constructor Summary |
NVFIXBuilder(int capacity,
byte fieldSeparator)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NVFIXBuilder
public NVFIXBuilder(int capacity,
byte fieldSeparator)
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 appendvalue
- 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 appendvalue
- 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.