Serializable
public static final class FileEntry.Numb extends MultiDataObject.Entry
Useful for representing useless files.
Constructor | Description |
---|---|
Numb(MultiDataObject obj,
org.openide.filesystems.FileObject fo) |
Create a dummy entry.
|
Modifier and Type | Method | Description |
---|---|---|
org.openide.filesystems.FileObject |
copy(org.openide.filesystems.FileObject f,
String suffix) |
Does nothing.
|
org.openide.filesystems.FileObject |
createFromTemplate(org.openide.filesystems.FileObject f,
String name) |
Does nothing.
|
void |
delete() |
Removes file.
|
boolean |
isImportant() |
Is not important at all.
|
org.openide.filesystems.FileObject |
move(org.openide.filesystems.FileObject f,
String suffix) |
Removes file.
|
org.openide.filesystems.FileObject |
rename(String name) |
Removes file.
|
copyRename, equals, getDataObject, getFile, hashCode, isLocked, takeLock, writeReplace
public Numb(MultiDataObject obj, org.openide.filesystems.FileObject fo)
obj
- the data object this entry belongs tofo
- the file object to create an entry forpublic boolean isImportant()
isImportant
in class MultiDataObject.Entry
public org.openide.filesystems.FileObject copy(org.openide.filesystems.FileObject f, String suffix)
copy
in class MultiDataObject.Entry
f
- ignoredsuffix
- ignorednull
public org.openide.filesystems.FileObject rename(String name) throws IOException
rename
in class MultiDataObject.Entry
name
- ignorednull
IOException
- in case of problempublic org.openide.filesystems.FileObject move(org.openide.filesystems.FileObject f, String suffix) throws IOException
move
in class MultiDataObject.Entry
f
- ignoredsuffix
- ignorednull
IOException
- in case of problempublic void delete() throws IOException
delete
in class MultiDataObject.Entry
IOException
- in case of problempublic org.openide.filesystems.FileObject createFromTemplate(org.openide.filesystems.FileObject f, String name)
createFromTemplate
in class MultiDataObject.Entry
f
- ignoredname
- ignorednull
Built on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.