Package org.compiere.tools
Class Strip
java.lang.Object
org.compiere.tools.Strip
Strip Windows (cr/lf) Text files to Unix (cr) Text files
- Version:
- $Id: Strip.java,v 1.2 2006/07/30 00:51:06 jjanke Exp $
- Author:
- Jorg Janke
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
Strip file in argsboolean
Strip infile to outfileboolean
Strip infile to outfilevoid
stripDirectory
(String directory, String nameMustContain) Strip a directory (and its subdirectories recursively)
-
Constructor Details
-
Strip
public Strip()Constructor
-
-
Method Details
-
stripDirectory
Strip a directory (and its subdirectories recursively)- Parameters:
directory
- directorynameMustContain
- file name must include characters - e.g. .sh (do not include wildcards like *). If null, all files are stripped
-
strip
Strip infile to outfile- Parameters:
infile
- input fileoutfile
- (can be null)- Returns:
- true if copied
-
strip
Strip infile to outfile- Parameters:
infile
- input fileoutfile
- if the output file is null, the infile is renamed to ".bak"- Returns:
- true if copied
-
main
Strip file in args- Parameters:
args
- infile outfile
-