public static final class FileEntry.Folder extends MultiDataObject.Entry
Constructor and Description |
---|
Folder(MultiDataObject obj,
FileObject fo)
Creates new FolderEntry
|
Modifier and Type | Method and Description |
---|---|
FileObject |
copy(FileObject f,
String suffix)
Creates new folder and copies attributes.
|
FileObject |
createFromTemplate(FileObject f,
String name)
Creates new folder and copies attributes, the template flag is cleared.
|
void |
delete()
Deletes folder associated with entry.
|
FileObject |
move(FileObject f,
String suffix)
Nearly the same like
(FileObject f, String suffix) . |
FileObject |
rename(String name)
Renames folder.
|
copyRename, equals, getDataObject, getFile, hashCode, isImportant, isLocked, takeLock, writeReplace
public Folder(MultiDataObject obj, FileObject fo)
public FileObject copy(FileObject f, String suffix) throws IOException
copy
in class MultiDataObject.Entry
f
- the folder to create this entry insuffix
- suffix appended to the new name to useFileObject
or null
if it cannot be copiedIOException
- when the operation failspublic FileObject move(FileObject f, String suffix) throws IOException
(FileObject f, String suffix)
.move
in class MultiDataObject.Entry
f
- the folder to move this entry tosuffix
- suffix appended to the new name to useFileObject
or null
if it has been deletedIOException
- when the operation failspublic FileObject createFromTemplate(FileObject f, String name) throws IOException
createFromTemplate
in class MultiDataObject.Entry
f
- the folder to create this entry inname
- the new name to useFileObject
or null
if it cannot be copiedIOException
- when the operation failspublic FileObject rename(String name) throws IOException
rename
in class MultiDataObject.Entry
name
- the new nameFileObject
or null
if it has been deletedIOException
- when the operation failspublic void delete() throws IOException
FileEntry.Folder
entry is deleted.delete
in class MultiDataObject.Entry
IOException
- when the operation fails