com.basilv.envgen
Class MainframeFileFormatTransform
java.lang.Object
com.basilv.envgen.MainframeFileFormatTransform
- All Implemented Interfaces:
- TemplateModel, TemplateTransformModel
public class MainframeFileFormatTransform
- extends Object
- implements TemplateTransformModel
Template to format input into a form acceptable for mainframes.
The formatting changes that are made are:
- Convert tabs to spaces (4 spaces per tab)
- Trim whitespace from end of line
- Fail with error message if a line is longer than 75 characters
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MainframeFileFormatTransform
public MainframeFileFormatTransform()
- Must have a default no-arg constructor.
getWriter
public Writer getWriter(Writer out,
Map args)
throws TemplateModelException
- Specified by:
getWriter in interface TemplateTransformModel
- Throws:
TemplateModelException
EnvGen available from www.basilv.com/psd/software Copyright © 2007 Basil Vandegriend. All Rights Reserved.