Java Implementation

The Java component of the project includes the following classes and packages:

  1. com.splwg.dg.osb.common.FileParserGenGeneric class is a super class with members that are common for CSV and XML related functionality. It implements the com.splwg.d1.sgg.osb.common.FileParser interface (see FileParser Interface). The implementation of com.splwg.d1.sgg.osb.common.FileParser2 (see FileParser2 Interface) has been added to define the IMD & Event Upload Statistics related functionality.

  2. com.splwg.dg.osb.csv.FileParserCSV class contains the implementation of the parsing functionality for CSV formats. It performs the following logic:

    • Parses the incoming payload.

    • Transforms incoming data to Usage or Event related structures based on incoming data type.

    • Extends those structures with file information and external service provider identifier.

    • Returns one by one that structures as a stream to caller.

  3. com.splwg.dg.osb.plain package contains JAXB related interfaces and implementation classes corresponding to the Plain XML Schema

  4. com.splwg.dg.osb.xml.FileParserXML class contains the implementation of parsing functionality for the “IMD and Event Online Upload” XML format (See the Oracle Utilities Service and Measurement Data Foundation User’s Guide). It performs the following logic:

    • Parses the incoming payload.

    • Extracts information about current device.

    • Breaks the incoming data to separate initial measurement data structures.

    • Extends those structures with device information, file information and external service provider identifier.

    • Returns one by one the structures as a stream to caller.