public class Folder
extends java.lang.Object
| Constructor and Description |
|---|
Folder(java.io.File folder) |
Folder(Folder folder,
java.lang.String subFolder) |
| Modifier and Type | Method and Description |
|---|---|
void |
copyTo(Folder destFolder) |
void |
create() |
void |
createAsTemporaryFolder() |
Folder |
createIfNotExists() |
void |
delete() |
boolean |
exists() |
java.io.File |
getFile() |
java.io.File |
getFile(java.lang.String name) |
protected byte[] |
getFileContent(java.io.File file) |
java.util.Map<java.lang.String,byte[]> |
getResources(java.lang.String filenamesPattern) |
java.util.Map<java.lang.String,byte[]> |
listFilesAsResources() |
java.io.File |
newFile(java.lang.String name) |
java.lang.String |
toString() |
java.net.URI |
toURI() |
byte[] |
zip(Folder destFolder) |
public Folder(java.io.File folder)
throws java.io.IOException
java.io.IOExceptionpublic Folder(Folder folder, java.lang.String subFolder) throws java.io.IOException
java.io.IOExceptionpublic java.io.File getFile()
public void delete()
throws java.io.IOException
java.io.IOExceptionpublic java.io.File getFile(java.lang.String name)
throws java.io.IOException
java.io.IOExceptionpublic java.io.File newFile(java.lang.String name)
throws java.io.IOException
java.io.IOExceptionpublic void create()
throws java.io.IOException
java.io.IOExceptionpublic void copyTo(Folder destFolder) throws java.io.IOException
java.io.IOExceptionpublic byte[] zip(Folder destFolder) throws java.io.IOException
java.io.IOExceptionpublic java.util.Map<java.lang.String,byte[]> getResources(java.lang.String filenamesPattern)
throws java.io.IOException
java.io.IOExceptionpublic java.util.Map<java.lang.String,byte[]> listFilesAsResources()
throws java.io.IOException
java.io.IOExceptionprotected byte[] getFileContent(java.io.File file)
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean exists()
public java.net.URI toURI()
throws java.io.IOException
java.io.IOExceptionpublic Folder createIfNotExists() throws java.io.IOException
java.io.IOExceptionpublic void createAsTemporaryFolder()