gov.nih.nlm.nls.utils
Class Dos2Unix

java.lang.Object
  extended bygov.nih.nlm.nls.utils.Dos2Unix

public class Dos2Unix
extends java.lang.Object

Converts dos files to unix ascii format.

Version:
$Id: Dos2Unix.java,v 1.1 2002/08/29 15:19:14 wrogers Exp $
Author:
Willie Rogers

Constructor Summary
Dos2Unix()
           
 
Method Summary
static void copyFileRemoveCrs(java.lang.String pSourceFile, java.lang.String pTargetFile)
          copyFileRemoveCrs copies the contents of file A to file B and strips out carriage returns.
static void main(java.lang.String[] args)
          Command line front end for copyFileRemoveCrs.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Dos2Unix

public Dos2Unix()
Method Detail

copyFileRemoveCrs

public static void copyFileRemoveCrs(java.lang.String pSourceFile,
                                     java.lang.String pTargetFile)
                              throws java.io.IOException,
                                     java.io.FileNotFoundException
copyFileRemoveCrs copies the contents of file A to file B and strips out carriage returns.

Parameters:
pSourceFile - source file.
pTargetFile - destination file.
Throws:
java.io.IOException - error reading or writing files
java.io.FileNotFoundException - error opening file, not found.

main

public static void main(java.lang.String[] args)
                 throws java.io.IOException,
                        java.io.FileNotFoundException
Command line front end for copyFileRemoveCrs. usage: gov.nih.nlm.nls.utils.Dos2Unix sourcefile destfile

Parameters:
args - command line arguments
Throws:
java.io.IOException
java.io.FileNotFoundException


The use and distribution of this material is subject to the terms and conditions included in the file SPECIALIST_NLP_TOOLS_TERMS_AND_CONDITIONS.TXT, located in the root directory of the distribution.