General data stream parser for encoding and decoding data and program interface for same
First Claim
1. In a data processing system including at least one processing node with a data communications channel, a computer implemented method of parsing data in a data stream incoming on the channel and communicating the data to a program executing on the node, said data stream having one of a plurality of different formats, comprising the computer implemented steps of:
- initializing this instance of communication between a parser and the program, said initialing including identifying a parse table among a plurality of parse tables, each of said parse tables containing linked data descriptors which define the order of occurrence of individual data items within the data stream, thereby defining the format of the data stream,identifying one or more templates each of which corresponds to one or more said data items and allocating private storage for individual items, wherein said template defines storage locations in the private storage for passing the data items with which it is associated between the program and the parser and thereafterby the program, requesting a templates worth of data received by the parser on the channel from the data stream by issuing a call to the parser identifying the parse table, the state of encoding or decoding of the data stream by the parse table defining the next template to be used,by the parser, decoding the incoming data in accordance with the format of the data stream as indicated by the identified parse table to extract the individual data items, by repetitively interpreting the descriptors of the parse table in synchronization with the incoming data stream, andstoring the individual data items in their respective allocated storage areas for the program.
1 Assignment
0 Petitions
Accused Products
Abstract
A common general parser and applications program interface for use in a data processing system. The parser encodes data from a program for transmission onto a channel and decodes incoming data for handoff to an applications program. Initialization of the parser includes allocating private storage for the individual data items to be encoded or decoded. The program requests data that is received by the parser or transmits data onto the channel by issuing a call to the parser. The call identifies the parse table to be used by the parser. In response, the parser encodes of decodes the data in accordance with the identified parse table to extract the individual data items. The parser stores the individual data items in their respective allocated storage areas for the program during decoding or extracts the data items from the storage for encoding.
104 Citations
7 Claims
-
1. In a data processing system including at least one processing node with a data communications channel, a computer implemented method of parsing data in a data stream incoming on the channel and communicating the data to a program executing on the node, said data stream having one of a plurality of different formats, comprising the computer implemented steps of:
-
initializing this instance of communication between a parser and the program, said initialing including identifying a parse table among a plurality of parse tables, each of said parse tables containing linked data descriptors which define the order of occurrence of individual data items within the data stream, thereby defining the format of the data stream, identifying one or more templates each of which corresponds to one or more said data items and allocating private storage for individual items, wherein said template defines storage locations in the private storage for passing the data items with which it is associated between the program and the parser and thereafter by the program, requesting a templates worth of data received by the parser on the channel from the data stream by issuing a call to the parser identifying the parse table, the state of encoding or decoding of the data stream by the parse table defining the next template to be used, by the parser, decoding the incoming data in accordance with the format of the data stream as indicated by the identified parse table to extract the individual data items, by repetitively interpreting the descriptors of the parse table in synchronization with the incoming data stream, and storing the individual data items in their respective allocated storage areas for the program. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
Specification