Package org.cip4.jdflib.util
Class DumpDir
- java.lang.Object
-
- org.cip4.jdflib.util.DumpDir
-
public class DumpDir extends java.lang.Object
-
-
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.FilegetDir()returns the base directory as a Filejava.io.FilenewFile(java.lang.String header)Deprecated.- use 2 parameter version; default= newFile(header,null);java.io.FilenewFile(java.lang.String header, java.lang.String ext)create a new File in this dumpjava.io.FilenewFileFromStream(java.lang.String header, java.io.InputStream is)Deprecated.use the 3 parameter versionjava.io.FilenewFileFromStream(java.lang.String header, java.io.InputStream is, java.lang.String ext)create a new File in this dump and fill it from isjava.lang.StringtoString()
-
-
-
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 xmlext- 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 versioncreate a new File in this dump and fill it from is- Parameters:
header- the header to print prior to the streamis- 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 streamis- the input stream to fillext- the additional extension- Returns:
- the new file
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object- See Also:
Object.toString()
-
-