public class DumpDir extends Object
Modifier and Type | Field and Description |
---|---|
protected org.apache.commons.logging.Log |
log |
boolean |
quiet
if true, no printouts
|
Constructor and Description |
---|
DumpDir(File dir)
create a dumpdir with dir as the root
|
Modifier and Type | Method and Description |
---|---|
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() |
protected final org.apache.commons.logging.Log log
public boolean quiet
public DumpDir(File dir)
dir
- public File getDir()
@Deprecated public File newFile(String header)
header
- the header to print prior to the xmlpublic File newFile(String header, String ext)
header
- the header to print prior to the xmlext
- the additional extension to add prior to .tmp@Deprecated public File newFileFromStream(String header, InputStream is)
header
- the header to print prior to the streamis
- the input stream to fillpublic File newFileFromStream(String header, InputStream is, String ext)
header
- the header to print prior to the streamis
- the input stream to fillext
- the additional extensionpublic String toString()
toString
in class Object
Object.toString()
Copyright © 2018. All rights reserved.