org.openide.filesystems
Interface AbstractFileSystem.Change

All Superinterfaces:
Serializable
All Known Implementing Classes:
JarFileSystem.Impl, LocalFileSystem.Impl, XMLFileSystem.Impl
Enclosing interface:
AbstractFileSystem

public static interface AbstractFileSystem.Change
extends Serializable

Controls modification of files.


Field Summary
static long serialVersionUID
          Deprecated. Only public by accident.
 
Method Summary
 void createData(String name)
          Create new data file.
 void createFolder(String name)
          Create new folder.
 void delete(String name)
          Delete a file.
 void rename(String oldName, String newName)
          Rename a file.
 

Field Detail

serialVersionUID

public static final long serialVersionUID
Deprecated. Only public by accident.

See Also:
Constant Field Values
Method Detail

createFolder

public void createFolder(String name)
                  throws IOException
Create new folder.

Parameters:
name - full name of new folder, e.g. topfolder/newfolder
Throws:
IOException - if the operation fails

createData

public void createData(String name)
                throws IOException
Create new data file.

Parameters:
name - full name of the file, e.g. path/from/root/filename.ext
Throws:
IOException - if the file cannot be created (e.g. already exists)

rename

public void rename(String oldName,
                   String newName)
            throws IOException
Rename a file.

Parameters:
oldName - old name of the file; fully qualified
newName - new name of the file; fully qualified
Throws:
IOException - if it could not be renamed

delete

public void delete(String name)
            throws IOException
Delete a file.

Parameters:
name - name of file; fully qualified
Throws:
IOException - if the file could not be deleted

 

Built on May 3 2007.  |  Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.