-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add setUnknownTagVisitor() method in all decoders
- Loading branch information
Showing
6 changed files
with
62 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
artio-codecs/src/main/java/uk/co/real_logic/artio/builder/UnknownTagVisitor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package uk.co.real_logic.artio.builder; | ||
|
||
import uk.co.real_logic.artio.util.AsciiBuffer; | ||
|
||
/** | ||
* Interface for visiting unknown tags. | ||
* | ||
* @see CommonDecoderImpl#setUnknownTagVisitor(UnknownTagVisitor) | ||
*/ | ||
public interface UnknownTagVisitor | ||
{ | ||
/** | ||
* Called when an unknown tag is encountered while decoding a message. | ||
* | ||
* @param tag The tag number of the unknown tag | ||
* @param buffer The buffer containing the unknown tag | ||
* @param offset The offset at which the unknown tag starts | ||
* @param length The length of the unknown tag | ||
*/ | ||
void onUnknownTag( | ||
int tag, | ||
AsciiBuffer buffer, | ||
int offset, | ||
int length | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters