Example code to implement the custom parser extension in a message definition.
// package declaration package com.sybase.jtf.parser.api; /** * The IParseExtension interface provides an extension point in which * clients can develop custom code to extend the field parsing * capability of any IParser. Once a field has been parsed by an IParser, * the extend() method of a class that implements the IParseExtension * interface can be called on that field to allow for additional * functionality such as custom modification, substitution, additional * validation and data scrubbing. */ public interface IParseExtension { /** * Called on a parsed field to allow clients to extend the field * parsing capability of an IParser. * * @param field The parsed field (represented as a byte array). * * @return The modified field (represented as a byte array). */ public byte[] extend(byte[] field); }
Send your feedback on this help topic to Sybase Technical Publications: pubs@sybase.com
Your comments will be sent to the technical publications staff at Sybase, Inc. For product-related issues or technical support, contact Sybase Technical Support at 1-800-8SYBASE.