org.openide.loaders
Class  FileEntry.Folder
java.lang.Object
  |
  +--org.openide.loaders.MultiDataObject.Entry
        |
        +--org.openide.loaders.FileEntry.Folder
- All Implemented Interfaces: 
 - Serializable
 
- Enclosing class: 
 - FileEntry
 
- public static final class FileEntry.Folder
- extends MultiDataObject.Entry
  
Simple entry for handling folders, on copy, move and createFromTemplate
 it creates new empty folder and copies attributes of source folder.
 Operation on children should be performed explicitly by DataObject 
 using this entry.
- Since: 
 - 1.13
 
- See Also: 
 - Serialized Form
 
 
 
 
 
FileEntry.Folder
public FileEntry.Folder(MultiDataObject obj,
                        FileObject fo)
- Creates new FolderEntry
 
copy
public FileObject copy(FileObject f,
                       String suffix)
                throws IOException
- Creates new folder and copies attributes.
- Overrides:
 copy in class MultiDataObject.Entry
 
- Parameters:
 f - the folder to create this entry insuffix - suffix appended to the new name to use- Returns:
 - the copied 
FileObject or null if it cannot be copied - Throws:
 IOException - when the operation fails
 
 
move
public FileObject move(FileObject f,
                       String suffix)
                throws IOException
- Nearly the same like 
(FileObject f, String suffix).
- Overrides:
 move in class MultiDataObject.Entry
 
- Parameters:
 f - the folder to move this entry tosuffix - suffix appended to the new name to use- Returns:
 - the moved 
FileObject or null if it has been deleted - Throws:
 IOException - when the operation fails
 
 
createFromTemplate
public FileObject createFromTemplate(FileObject f,
                                     String name)
                              throws IOException
- Creates new folder and copies attributes, the template flag is cleared.
- Overrides:
 createFromTemplate in class MultiDataObject.Entry
 
- Parameters:
 f - the folder to create this entry inname - the new name to use- Returns:
 - the copied 
FileObject or null if it cannot be copied - Throws:
 IOException - when the operation fails
 
 
rename
public FileObject rename(String name)
                  throws IOException
- Renames folder.
- Overrides:
 rename in class MultiDataObject.Entry
 
- Parameters:
 name - the new name- Returns:
 - the renamed 
FileObject or null if it has been deleted - Throws:
 IOException - when the operation fails
 
 
delete
public void delete()
            throws IOException
- Deletes folder associated with entry. Although filesystems delete
 folders recursively, it is better to delete children DataObjects before
 the 
FileEntry.Folder(org.openide.loaders.MultiDataObject, org.openide.filesystems.FileObject) entry is deleted.
- Overrides:
 delete in class MultiDataObject.Entry
 
- Throws:
 IOException - when the operation fails
 
 
Built on December 12 2001.  |  Portions Copyright 1997-2001 Sun Microsystems, Inc. All rights reserved.