org.cip4.jdflib.util
Class DumpDir

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

public class DumpDir
extends Object

Author:
rainer very trivial temp file dump

Field Summary
protected  org.apache.commons.logging.Log log
           
 boolean quiet
          if true, no printouts
 
Constructor Summary
DumpDir(File dir)
          create a dumpdir with dir as the root
 
Method Summary
 File getDir()
          returns the base directory as a File
 File newFile(String header)
          Deprecated. - use 2 parameter version; default= newFile(header,null);
 File newFile(String header, String ext)
          create a new File in this dump
 File newFileFromStream(String header, InputStream is)
          Deprecated. use the 3 parameter version
 File newFileFromStream(String header, InputStream is, String ext)
          create a new File in this dump and fill it from is
 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(File dir)
create a dumpdir with dir as the root

Parameters:
dir -
Method Detail

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:
Object.toString()


Copyright © 2013. All Rights Reserved.