Class EdiParser

java.lang.Object
hdi.edi.parser.EdiParser
All Implemented Interfaces:
hdi.util.Loggers, Closeable, AutoCloseable

public class EdiParser extends Object implements Closeable, hdi.util.Loggers
The EdiParser class provides functionality for parsing EDI (Electronic Data Interchange) files and processing EDI transactions with options for validation, logging, and transaction hierarchy management. It supports various modes of operation such as batch parsing, validation, and strict parsing modes. The class is designed to handle complex EDI requirements with internal mechanisms for validating transactions, managing validation issues, and resolving control segments. It leverages configurable fields to adjust the behavior of the parser, such as strict mode enforcement, fragment mode, and issue suppression.
  • Field Details

  • Constructor Details

    • EdiParser

      public EdiParser(File ediFile)
    • EdiParser

      public EdiParser(Reader reader)
  • Method Details

    • parse837

      @Deprecated public List<Claim> parse837(int batchSize)
      Deprecated.
      Parameters:
      batchSize -
      Returns:
      list of claims
    • parse835

      @Deprecated public List<Payment> parse835(int batchSize)
      Deprecated.
      Parameters:
      batchSize -
      Returns:
      list of payments
    • parse

      public EdiParsingResults parse()
      Parses the complete EDI data available, delegating the parsing operation internally with a default configuration.
      Returns:
      the parsing results containing processed transactions and any validation issues encountered during parsing
    • parse

      public EdiParsingResults parse(int batchSize)
      Parses the EDI data in batches with the specified batch size. Delegates to another method to perform the parsing.
      Parameters:
      batchSize - the number of transactions to process in each batch
      Returns:
      the parsing results, including processed transactions and any validation issues encountered
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
    • getVersion

      public static String getVersion()
    • getLicenseInfo

      public static hdi.license.LicenseInfo getLicenseInfo()
    • fileInfo

      public hdi.edi.fileinfo.FileInfo fileInfo()
    • isSplitMode

      public EdiParser isSplitMode(boolean isSplitMode)
      Returns:
      this.
    • maxNumberOfIssues

      public EdiParser maxNumberOfIssues(int maxNumberOfIssues)
      Returns:
      this.
    • isValidationMode

      public EdiParser isValidationMode(boolean isValidationMode)
      Returns:
      this.