View on GitHub

EDIReader Community Edition

Flexible and lightweight open-source EDI parser in pure Java.

EDIReader

EDIReader is a flexible and lightweight open-source EDI parser, written in pure Java using the SAX API and distributed under the GPLv3 license. First released in 2004 and enhanced steadily since then, it has handled millions of transactions in a wide variety of products, services, industries, platforms, and custom integrations. Its streaming parser is the foundation of the broader EDIReader technology stack.

HL7 support is included in EDIReader.
Beginning with version 6.0.0, HL7 parsing is available directly in the open-source EDIReader parser rather than requiring the EDIReader Framework.

License: GPL v3 Java Version

ReleaseNotes.md

EDIReader Ecosystem

EDIReader is the open-source streaming parser at the foundation of BerryWorks’ EDI technology stack:

Quick Start

Basic Java Usage Example

import com.berryworks.edireader.EDIReader;
import com.berryworks.edireader.EDIReaderFactory;
import org.xml.sax.InputSource;
import org.xml.sax.XMLReader;

import java.io.FileReader;

public class ParseExample {
    public static void main(String[] args) throws Exception {
        // Create an EDIReader instance for an input stream
        InputSource inputSource = new InputSource(new FileReader("sample.edi"));
        XMLReader ediReader = EDIReaderFactory.createEDIReader(inputSource);

        // Attach a SAX ContentHandler (e.g., custom handler or standard XML transformer)
        ediReader.setContentHandler(new MySaxHandler());
        
        // Parse the EDI stream
        ediReader.parse(inputSource);
    }
}

Features Summary

The EDI parser supports:

Primary Interfaces

Technical Notes

License and Ownership

The EDIReader Framework

The EDIReader Framework is a broader set of Java modules built on top of the open-source EDIReader parser. The EDIReader Framework Community Edition is its freely available EDI-to-JSON distribution. Additional Framework modules are commercially licensed from BerryWorks Software and provide features such as: