Class DumpDir


  • public class DumpDir
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected org.apache.commons.logging.Log log  
      boolean quiet
      if true, no printouts
    • Constructor Summary

      Constructors 
      Constructor Description
      DumpDir​(java.io.File dir)
      create a dumpdir with dir as the root
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      java.io.File getDir()
      returns the base directory as a File
      java.io.File newFile​(java.lang.String header)
      Deprecated.
      - use 2 parameter version; default= newFile(header,null);
      java.io.File newFile​(java.lang.String header, java.lang.String ext)
      create a new File in this dump
      java.io.File newFileFromStream​(java.lang.String header, java.io.InputStream is)
      Deprecated.
      use the 3 parameter version
      java.io.File newFileFromStream​(java.lang.String header, java.io.InputStream is, java.lang.String ext)
      create a new File in this dump and fill it from is
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • log

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

        public boolean quiet
        if true, no printouts
    • Constructor Detail

      • DumpDir

        public DumpDir​(java.io.File dir)
        create a dumpdir with dir as the root
        Parameters:
        dir -
    • Method Detail

      • getDir

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

        @Deprecated
        public java.io.File newFile​(java.lang.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 java.io.File newFile​(java.lang.String header,
                                    java.lang.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 java.io.File newFileFromStream​(java.lang.String header,
                                              java.io.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 java.io.File newFileFromStream​(java.lang.String header,
                                              java.io.InputStream is,
                                              java.lang.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 java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
        See Also:
        Object.toString()