Package org.bonitasoft.engine.home
Class Folder
- java.lang.Object
-
- org.bonitasoft.engine.home.Folder
-
public class Folder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcopyTo(Folder destFolder)voidcreate()voidcreateAsTemporaryFolder()FoldercreateIfNotExists()voiddelete()booleanexists()java.io.FilegetFile()java.io.FilegetFile(java.lang.String name)protected byte[]getFileContent(java.io.File file)java.util.Map<java.lang.String,byte[]>listFilesAsResources()java.io.FilenewFile(java.lang.String name)java.lang.StringtoString()java.net.URItoURI()
-
-
-
Constructor Detail
-
Folder
public Folder(java.io.File folder) throws java.io.IOException- Throws:
java.io.IOException
-
Folder
public Folder(Folder folder, java.lang.String subFolder) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
getFile
public java.io.File getFile()
-
delete
public void delete() throws java.io.IOException- Throws:
java.io.IOException
-
getFile
public java.io.File getFile(java.lang.String name) throws java.io.IOException- Throws:
java.io.IOException
-
newFile
public java.io.File newFile(java.lang.String name) throws java.io.IOException- Throws:
java.io.IOException
-
create
public void create() throws java.io.IOException- Throws:
java.io.IOException
-
copyTo
public void copyTo(Folder destFolder) throws java.io.IOException
- Throws:
java.io.IOException
-
listFilesAsResources
public java.util.Map<java.lang.String,byte[]> listFilesAsResources() throws java.io.IOException- Throws:
java.io.IOException
-
getFileContent
protected byte[] getFileContent(java.io.File file) throws java.io.IOException- Throws:
java.io.IOException
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
exists
public boolean exists()
-
toURI
public java.net.URI toURI() throws java.io.IOException- Throws:
java.io.IOException
-
createIfNotExists
public Folder createIfNotExists() throws java.io.IOException
- Throws:
java.io.IOException
-
createAsTemporaryFolder
public void createAsTemporaryFolder()
-
-