Object
FixedLengthMessageScanner
- All Implemented Interfaces:
MessageScanner
This scanner is useful when all incoming messages have fixed length.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
FixedLengthMessageScanner
public FixedLengthMessageScanner(int messageLength)
-
-
Method Details
-
scan
- Specified by:
scan
in interfaceMessageScanner
- Returns:
- message end position or -1 if message is not complete or not found in the buffer yet. If last byte of the message found on position n then the message end position will be considered as n + 1.
-