|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ConfigurableCodec
This interface defines functions that Codecs which have upstream events passed to them via their associated transport must perform. Codecs which are used with the FileAdapter, which receives events via the Null codec upstream are such codecs.
Field Summary | |
---|---|
static java.lang.String |
DATA_FIELD
|
static java.lang.String |
SESSION_ID_FIELD
|
Method Summary | |
---|---|
void |
addConfiguration(int sessionId,
NormalisedEvent configuration)
A codec may wish to support multiple configurations depending on data being read. |
boolean |
performsEscapingDownstream()
Whether or not the codec performs escaping downstream. |
void |
removeConfiguration(int sessionId)
Remove configuration associated with the given id |
Field Detail |
---|
static final java.lang.String DATA_FIELD
static final java.lang.String SESSION_ID_FIELD
Method Detail |
---|
void addConfiguration(int sessionId, NormalisedEvent configuration) throws java.io.IOException
sessionId
- the sessionID this data relates to. Important as the codec may
have configuration information based on the sessionIDconfiguration
- The normalised event containing the additional information
required
java.io.IOException
- if the configuration could not be added to the codecvoid removeConfiguration(int sessionId) throws java.io.IOException
sessionId
- the sessionId to remove the configuration for
java.io.IOException
boolean performsEscapingDownstream()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |