public class FIXBuilder
extends java.lang.Object
Constructor and Description |
---|
FIXBuilder(int capacity,
byte fieldSeparator) |
Modifier and Type | Method and Description |
---|---|
FIXBuilder |
append(int tag,
byte[] value)
Appends a tag and value pair to contained within a byte buffer to the FIX message.
|
FIXBuilder |
append(int tag,
byte[] value,
int offset,
int length)
Appends a tag and and value pair contained within a byte buffer to the FIX message.
|
FIXBuilder |
append(int tag,
java.lang.String value)
Appends a tag and value pair to the FIX message.
|
void |
clear()
Clears self.
|
byte[] |
getBytes()
Returns the byte array containing the FIX message.
|
int |
getSize()
Returns the number of bytes in the byte array containing the FIX message.
|
public void clear()
public int getSize()
public byte[] getBytes()
public FIXBuilder append(int tag, byte[] value, int offset, int length) throws CommandException
tag
- The integer FIX 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.java.lang.IllegalArgumentException
- If the tag argument is negative.CommandException
- Not thrown, throws IllegalArgumentException
public FIXBuilder append(int tag, byte[] value) throws CommandException
tag
- The integer FIX to append.value
- The byte buffer containing the FIX value to append.CommandException
- error occurred while appending the tag and value to the
message.public FIXBuilder append(int tag, java.lang.String value) throws CommandException
tag
- The integer 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.java.lang.IllegalArgumentException
- If the tag argument is negative.CommandException
- If the tag or value argument is not convertible
to ISO-8859-1.