public static final class FileEntry.Folder extends MultiDataObject.Entry
| Constructor | Description |
|---|---|
Folder(MultiDataObject obj,
org.openide.filesystems.FileObject fo) |
Creates new FolderEntry
|
| Modifier and Type | Method | Description |
|---|---|---|
org.openide.filesystems.FileObject |
copy(org.openide.filesystems.FileObject f,
java.lang.String suffix) |
Creates new folder and copies attributes.
|
org.openide.filesystems.FileObject |
createFromTemplate(org.openide.filesystems.FileObject f,
java.lang.String name) |
Creates new folder and copies attributes, the template flag is cleared.
|
void |
delete() |
Deletes folder associated with entry.
|
org.openide.filesystems.FileObject |
move(org.openide.filesystems.FileObject f,
java.lang.String suffix) |
Nearly the same like
(FileObject f, String suffix). |
org.openide.filesystems.FileObject |
rename(java.lang.String name) |
Renames folder.
|
copyRename, equals, getDataObject, getFile, hashCode, isImportant, isLocked, takeLock, writeReplacepublic Folder(MultiDataObject obj, org.openide.filesystems.FileObject fo)
public org.openide.filesystems.FileObject copy(org.openide.filesystems.FileObject f,
java.lang.String suffix)
throws java.io.IOException
copy in class MultiDataObject.Entryf - the folder to create this entry insuffix - suffix appended to the new name to useFileObject or null if it cannot be copiedjava.io.IOException - when the operation failspublic org.openide.filesystems.FileObject move(org.openide.filesystems.FileObject f,
java.lang.String suffix)
throws java.io.IOException
(FileObject f, String suffix).move in class MultiDataObject.Entryf - the folder to move this entry tosuffix - suffix appended to the new name to useFileObject or null if it has been deletedjava.io.IOException - when the operation failspublic org.openide.filesystems.FileObject createFromTemplate(org.openide.filesystems.FileObject f,
java.lang.String name)
throws java.io.IOException
createFromTemplate in class MultiDataObject.Entryf - the folder to create this entry inname - the new name to useFileObject or null if it cannot be copiedjava.io.IOException - when the operation failspublic org.openide.filesystems.FileObject rename(java.lang.String name)
throws java.io.IOException
rename in class MultiDataObject.Entryname - the new nameFileObject or null if it has been deletedjava.io.IOException - when the operation failspublic void delete()
throws java.io.IOException
delete in class MultiDataObject.Entryjava.io.IOException - when the operation failsBuilt on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.