net.sf.cb2java.copybook
Class CobolPreprocessor

java.lang.Object
  extended bynet.sf.cb2java.copybook.CobolPreprocessor

public class CobolPreprocessor
extends java.lang.Object

Very simple COBOL pre-processor that chops the left and right margins. Column start and end positions are configurable using a properties file. Linefeeds are retained as these are required by the main parser. COBOL files typically contain some junk characters and comment indicators in the "margins" and this routine removes those.

Author:
Peter Thomas

Constructor Summary
CobolPreprocessor()
           
 
Method Summary
static java.lang.String preProcess(java.io.Reader reader)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CobolPreprocessor

public CobolPreprocessor()
Method Detail

preProcess

public static java.lang.String preProcess(java.io.Reader reader)