java.lang.Object
org.eclipse.persistence.internal.eis.cobol.CopyBookParser

public class CopyBookParser extends Object

Purpose: This class is a parser for Cobol Copy books. It will take a stream as an argument in its constructor and parse the stream when parse() is called. The parse() method returns a Vector of RecordMetaData one for each "01" level record description in the stream.

  • Constructor Details

    • CopyBookParser

      public CopyBookParser()
      Default constructor
  • Method Details

    • parse

      public Vector<RecordMetaData> parse(InputStream stream) throws Exception
      This method is the primary public api for this class, it takes an InputStream as an argument then parses this stream looking for "01" level record entries. It returns a Vector containing RecordMetaData for each "01" record defintion encountered in the stream.
      Throws:
      Exception