Serializable
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,
String suffix) |
Creates new folder and copies attributes.
|
org.openide.filesystems.FileObject |
createFromTemplate(org.openide.filesystems.FileObject f,
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,
String suffix) |
Nearly the same like
(FileObject f, String suffix) . |
org.openide.filesystems.FileObject |
rename(String name) |
Renames folder.
|
copyRename, equals, getDataObject, getFile, hashCode, isImportant, isLocked, takeLock, writeReplace
public Folder(MultiDataObject obj, org.openide.filesystems.FileObject fo)
public org.openide.filesystems.FileObject copy(org.openide.filesystems.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 org.openide.filesystems.FileObject move(org.openide.filesystems.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 org.openide.filesystems.FileObject createFromTemplate(org.openide.filesystems.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 org.openide.filesystems.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
delete
in class MultiDataObject.Entry
IOException
- when the operation failsBuilt on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.