com.crankuptheamps.client
Class FIXProtocol

java.lang.Object
  extended by com.crankuptheamps.client.FIXProtocol
All Implemented Interfaces:
Protocol
Direct Known Subclasses:
NVFIXProtocol

public class FIXProtocol
extends Object
implements Protocol


Field Summary
static String CharsetName
          The character set used to encode and decode messages sent via FIX.
static CodingErrorAction CodingErrorAction
          Specifies the default action to be taken when a character cannot be encoded or decoded.
 byte fieldSeparator
           
 byte headerSeparator
           
 byte messageSeparator
           
 
Constructor Summary
FIXProtocol()
           
FIXProtocol(byte fieldSeparator, byte headerSeparator, byte messageSeparator)
           
FIXProtocol(Properties props)
           
 
Method Summary
 FIXMessage allocateMessage()
           
 ProtocolParser getMessageStream()
           
 void setV1(boolean isV1)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fieldSeparator

public byte fieldSeparator

headerSeparator

public byte headerSeparator

messageSeparator

public byte messageSeparator

CharsetName

public static String CharsetName
The character set used to encode and decode messages sent via FIX. If you wish to change this value (whose default is Latin-1), this value must be set before connecting a Client to a FIX endpoint.


CodingErrorAction

public static CodingErrorAction CodingErrorAction
Specifies the default action to be taken when a character cannot be encoded or decoded.

Constructor Detail

FIXProtocol

public FIXProtocol()

FIXProtocol

public FIXProtocol(Properties props)
            throws ProtocolException
Throws:
ProtocolException

FIXProtocol

public FIXProtocol(byte fieldSeparator,
                   byte headerSeparator,
                   byte messageSeparator)
            throws ProtocolException
Throws:
ProtocolException
Method Detail

setV1

public void setV1(boolean isV1)

allocateMessage

public FIXMessage allocateMessage()
Specified by:
allocateMessage in interface Protocol

getMessageStream

public ProtocolParser getMessageStream()
Specified by:
getMessageStream in interface Protocol