Class FileFactoryCopy


  • public class FileFactoryCopy
    extends java.lang.Object
    Sample program that uses the FileFactory class to copy a text file or dataset. The input and output file names are given as arguments to main, and they main be either POSIX (HFS) file names or MVS dataset names.

    If the target file is an MVS dataset, then its LRECL should be compatible with the source file/dataset.

    Example file names:

    • /etc/profile
    • //DD:INPUT
    • //'SYS1.MACLIB(ABEND)'
    • //MY.DATASET
    See Also:
    FileFactory
    • Constructor Summary

      Constructors 
      Constructor Description
      FileFactoryCopy()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void main​(java.lang.String[] args)  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FileFactoryCopy

        public FileFactoryCopy()
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
                         throws java.io.IOException
        Throws:
        java.io.IOException