public static final class FileEntry.Numb extends MultiDataObject.Entry
Useful for representing useless files.
Constructor and Description |
---|
Numb(MultiDataObject obj,
FileObject fo)
Create a dummy entry.
|
Modifier and Type | Method and Description |
---|---|
FileObject |
copy(FileObject f,
String suffix)
Does nothing.
|
FileObject |
createFromTemplate(FileObject f,
String name)
Does nothing.
|
void |
delete()
Removes file.
|
boolean |
isImportant()
Is not important at all.
|
FileObject |
move(FileObject f,
String suffix)
Removes file.
|
FileObject |
rename(String name)
Removes file.
|
copyRename, equals, getDataObject, getFile, hashCode, isLocked, takeLock, writeReplace
public Numb(MultiDataObject obj, 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 FileObject copy(FileObject f, String suffix)
copy
in class MultiDataObject.Entry
f
- ignoredsuffix
- ignorednull
public FileObject rename(String name) throws IOException
rename
in class MultiDataObject.Entry
name
- ignorednull
IOException
- in case of problempublic FileObject move(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 FileObject createFromTemplate(FileObject f, String name)
createFromTemplate
in class MultiDataObject.Entry
f
- ignoredname
- ignorednull