com.bankframe.examples.txnhandler.connector.coboltest.parser.cobol
Class CobolParser

java.lang.Object
  extended bycom.bankframe.examples.txnhandler.connector.coboltest.parser.cobol.CobolParser
Direct Known Subclasses:
Cobol85Parser

public abstract class CobolParser
extends java.lang.Object

This class is an abstract Cobol parser which all concrete cobol parser inherit from.


Constructor Summary
CobolParser()
           
 
Method Summary
static java.lang.String open(java.io.File file)
          This method opens the CopyBook file and puts it contents into a String so it can be send over the wire.
abstract  CobolCopyBook parse(java.lang.String copyBookData)
           
 java.lang.String trimTerminationCharacter(java.lang.String item)
          This method trims '.' COBOL line terminators from strings.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CobolParser

public CobolParser()
Method Detail

open

public static final java.lang.String open(java.io.File file)
                                   throws java.io.IOException
This method opens the CopyBook file and puts it contents into a String so it can be send over the wire.

Parameters:
file - the CobolCopyBook File
Returns:
String containing file data
Throws:
java.io.IOException - thrown if an error occurs opening the file.

parse

public abstract CobolCopyBook parse(java.lang.String copyBookData)
                             throws CobolParserException
Throws:
CobolParserException

trimTerminationCharacter

public final java.lang.String trimTerminationCharacter(java.lang.String item)
This method trims '.' COBOL line terminators from strings.

Parameters:
item - the item to trim.


Copyright © 2005, 2007, Oracle. All rights reserved.