|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.crankuptheamps.client.FIXBuilder
public class FIXBuilder
| Constructor Summary | |
|---|---|
FIXBuilder(int capacity,
byte fieldSeparator)
|
|
| Method Summary | |
|---|---|
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,
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FIXBuilder(int capacity,
byte fieldSeparator)
| Method Detail |
|---|
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 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.
IllegalArgumentException - if the tag argument is negative.
CommandException
public FIXBuilder append(int tag,
String value)
throws CommandException
tag - the integer 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.
IllegalArgumentException - if the tag argument is negative.
CommandException - if the tag or value argument is not convertible to ISO-8859-1
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||