|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.cargo.util.FileUtils
FileHandler instead
public class FileUtils
Set of common File manipulation utility methods.
| Constructor Summary | |
|---|---|
FileUtils()
Deprecated. |
|
| Method Summary | |
|---|---|
void |
copy(java.io.InputStream in,
java.io.OutputStream out)
Deprecated. Copies data from an InputStream to an OutputStream. |
void |
copy(java.io.InputStream in,
java.io.OutputStream out,
int bufSize)
Deprecated. Copies data from an InputStream to an OutputStream. |
java.io.File |
createDirectory(java.io.File parentDir,
java.lang.String name)
Deprecated. |
java.io.File |
createDirectory(java.net.URI parentDir,
java.lang.String name)
Deprecated. Convenience method for creating a new directory inside another one. |
java.io.File |
createTmpDirectory(java.lang.String name)
Deprecated. Creates a temporary directory. |
java.io.File |
createUniqueTmpDirectory()
Deprecated. Creates a unique temporary directory. |
void |
delete(java.io.File item)
Deprecated. Deletes a file or directory, removing any children as appropriate. |
java.lang.String |
getFilename(java.lang.String filePath)
Deprecated. Convenience method that returns a relative filename and its extension from a complete file path (path, name and extension). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileUtils()
| Method Detail |
|---|
public final java.io.File createDirectory(java.net.URI parentDir,
java.lang.String name)
throws java.io.IOException
parentDir - The directory in which the new directory should be createdname - The name of the directory to create
java.io.IOException - If the directory could not be created
public final java.io.File createDirectory(java.io.File parentDir,
java.lang.String name)
throws java.io.IOException
java.io.IOExceptioncreateDirectory(URI, String)public java.io.File createTmpDirectory(java.lang.String name)
name - The name of the directory to create
public final java.lang.String getFilename(java.lang.String filePath)
filePath - the full file path (including relative name and extension)
public java.io.File createUniqueTmpDirectory()
public void copy(java.io.InputStream in,
java.io.OutputStream out)
throws java.io.IOException
in - InputStream to copy data fromout - OutputStream to copy data to
java.io.IOException - if an I/O error occurs
public void copy(java.io.InputStream in,
java.io.OutputStream out,
int bufSize)
throws java.io.IOException
in - InputStream to copy data fromout - OutputStream to copy data tobufSize - size of the copy buffer
java.io.IOException - if an I/O error occurspublic void delete(java.io.File item)
item - in file or directory to remove
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||