Class DumpDir

java.lang.Object
org.cip4.jdflib.util.DumpDir

public class DumpDir extends Object
  • Field Details

    • log

      protected final org.apache.commons.logging.Log log
    • quiet

      public boolean quiet
      if true, no printouts
  • Constructor Details

    • DumpDir

      public DumpDir(File dir)
      create a dumpdir with dir as the root
      Parameters:
      dir -
  • Method Details

    • getDir

      public File getDir()
      returns the base directory as a File
      Returns:
    • newFile

      @Deprecated public File newFile(String header)
      Deprecated.
      - use 2 parameter version; default= newFile(header,null);
      create a new File in this dump
      Parameters:
      header - the header to print prior to the xml
      Returns:
    • newFile

      public File newFile(String header, String ext)
      create a new File in this dump
      Parameters:
      header - the header to print prior to the xml
      ext - the additional extension to add prior to .tmp
      Returns:
    • newFileFromStream

      @Deprecated public File newFileFromStream(String header, InputStream is)
      Deprecated.
      use the 3 parameter version
      create a new File in this dump and fill it from is
      Parameters:
      header - the header to print prior to the stream
      is - the input stream to fill
      Returns:
      the new file
    • newFileFromStream

      public File newFileFromStream(String header, InputStream is, String ext)
      create a new File in this dump and fill it from is
      Parameters:
      header - the header to print prior to the stream
      is - the input stream to fill
      ext - the additional extension
      Returns:
      the new file
    • toString

      public String toString()
      Overrides:
      toString in class Object
      See Also: