public class Encoder extends Coder
Constructor and Description |
---|
Encoder(InputStream templateStream,
Version fixVersion)
Constructor.
|
Encoder(InputStream templateStream,
Version fixVersion,
boolean codeEachMessageIndependently)
Constructor.
|
Encoder(InputStream templateStream,
Version fixVersion,
FastVersion fastVersion)
Constructor.
|
Encoder(InputStream templateStream,
Version fixVersion,
FastVersion fastVersion,
boolean codeEachMessageIndependently)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
encode(Message message)
Encodes the given FIX message into a FAST stream chunk.
|
void |
encode(Message message,
ByteBuffer buffer) |
byte[] |
encode(Message message,
int templateId)
Encodes the given FIX message into a FAST stream chunk.
|
void |
encode(Message message,
int templateId,
ByteBuffer buffer) |
getFastVersion, getFixVersion, isCodeEachMessageIndependently, reset, updateMissedIdentifiers
public Encoder(InputStream templateStream, Version fixVersion)
templateStream
- input stream with the FAST template XMLfixVersion
- target FIX versionpublic Encoder(InputStream templateStream, Version fixVersion, FastVersion fastVersion)
templateStream
- input stream with the FAST template XMLfastVersion
- source FAST version, default is FastVersion.FAST_1_1
fixVersion
- target FIX versionpublic Encoder(InputStream templateStream, Version fixVersion, boolean codeEachMessageIndependently)
templateStream
- input stream with the FAST template XMLfixVersion
- target FIX versioncodeEachMessageIndependently
- option to reset the previous values dictionaries, default is truepublic Encoder(InputStream templateStream, Version fixVersion, FastVersion fastVersion, boolean codeEachMessageIndependently)
templateStream
- input stream with the FAST template XMLfixVersion
- source FIX versionfastVersion
- target FAST version, default is FastVersion.FAST_1_1
codeEachMessageIndependently
- option to reset the previous values dictionaries, default is truepublic byte[] encode(Message message) throws FastException
message
- input FIX messageFastException
- if encoding failedpublic void encode(Message message, ByteBuffer buffer) throws FastException
FastException
public byte[] encode(Message message, int templateId) throws FastException
message
- input FIX messagetemplateId
- template id to useFastException
- if encoding failedpublic void encode(Message message, int templateId, ByteBuffer buffer) throws FastException
FastException
Copyright © 2005–2024 Onix Solutions. All rights reserved.