Package org.openbravo.utils
Class FileUtility
- java.lang.Object
-
- org.openbravo.utils.FileUtility
-
public class FileUtility extends Object
- Version:
- $Revision: 1.1 $
- Author:
- Fernando Iriazabal
-
-
Constructor Summary
Constructors Constructor Description FileUtility()
FileUtility(String path, String name)
FileUtility(String path, String name, boolean newFile)
FileUtility(String path, String name, boolean newFile, boolean readonly)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
ByteArrayToFile(ByteArrayOutputStream in)
static int
copy(File source, File destiny, DirFilter dirFilter, boolean discardHidden, boolean overwrite)
static void
copyFile(File in, File out)
static void
delete(File source)
boolean
deleteFile()
void
dumpFile(OutputStream outputstream)
boolean
exists()
boolean
StringToFile(String in)
-
-
-
Constructor Detail
-
FileUtility
public FileUtility()
-
FileUtility
public FileUtility(String path, String name) throws IOException
- Throws:
IOException
-
FileUtility
public FileUtility(String path, String name, boolean newFile) throws IOException
- Throws:
IOException
-
FileUtility
public FileUtility(String path, String name, boolean newFile, boolean readonly) throws IOException
- Throws:
IOException
-
-
Method Detail
-
ByteArrayToFile
public boolean ByteArrayToFile(ByteArrayOutputStream in) throws IOException
- Throws:
IOException
-
StringToFile
public boolean StringToFile(String in) throws IOException
- Throws:
IOException
-
dumpFile
public void dumpFile(OutputStream outputstream)
-
deleteFile
public boolean deleteFile() throws IOException
- Throws:
IOException
-
copy
public static int copy(File source, File destiny, DirFilter dirFilter, boolean discardHidden, boolean overwrite) throws Exception
- Throws:
Exception
-
exists
public boolean exists()
-
-