Class DataSetFile

  • All Implemented Interfaces:
    java.io.Serializable

    public class DataSetFile
    extends java.lang.Object
    implements java.io.Serializable
    Wrapper that bundles two copies of incoming dataset file. One is original file from the dropbox (realIncomingFile), second is the prestaging copy (logicalIncomingFile). In most cases, clients should use the logicalIncomingFile. The exception being for actions that execute on error.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      DataSetFile​(java.io.File incoming)
      Creates the dataset file without prestaging copy.
      DataSetFile​(java.io.File originalIncoming, java.io.File prestagingCopy)
      Creates the dataset file with original incoming and prestaging copy
    • Constructor Detail

      • DataSetFile

        public DataSetFile​(java.io.File originalIncoming,
                           java.io.File prestagingCopy)
        Creates the dataset file with original incoming and prestaging copy
      • DataSetFile

        public DataSetFile​(java.io.File incoming)
        Creates the dataset file without prestaging copy.
    • Method Detail

      • getRealIncomingFile

        public java.io.File getRealIncomingFile()
        This file should be used only when it is really important to do something on the original File.
      • getLogicalIncomingFile

        public java.io.File getLogicalIncomingFile()
        This file should be used for most of the processing.
      • isLogicalFileSpecified

        public boolean isLogicalFileSpecified()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object