com.bankframe.examples.txnhandler.connector.coboltest.parser.cobol
Class CobolParser
java.lang.Object
com.bankframe.examples.txnhandler.connector.coboltest.parser.cobol.CobolParser
- Direct Known Subclasses:
- Cobol85Parser
public abstract class CobolParser
- extends Object
This class is an abstract Cobol parser which all concrete
cobol parser inherit from.
CobolParser
public CobolParser()
open
public static final String open(File file)
throws 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:
IOException
- thrown if an error occurs opening the file.
parse
public abstract CobolCopyBook parse(String copyBookData)
throws CobolParserException
- Throws:
CobolParserException
trimTerminationCharacter
public final String trimTerminationCharacter(String item)
- This method trims '.' COBOL line terminators from strings.
- Parameters:
item
- the item to trim.
Copyright © 2005, 2007, Oracle. All rights reserved.