org.openide.filesystems
Interface AbstractFileSystem.Transfer
- All Superinterfaces:
- Serializable
- Enclosing class:
- AbstractFileSystem
- public static interface AbstractFileSystem.Transfer
- extends Serializable
Controls on moving of files. This is additional interface to
allow file system that require special handling of move to implement
it in different way then is the default one.
serialVersionUID
public static final long serialVersionUID
move
public boolean move(String name,
AbstractFileSystem.Transfer target,
String targetName)
throws IOException
- Move a file.
- Parameters:
name
- of the file on current file systemtarget
- move implementationtargetName
- of target file- Returns:
- false if the method is not able to handle the request and
default implementation should be used instead
- Throws:
IOException
- if the move fails
copy
public boolean copy(String name,
AbstractFileSystem.Transfer target,
String targetName)
throws IOException
- Copy a file.
- Parameters:
name
- of the file on current file systemtarget
- target transfer implementationtargetName
- name of target file- Returns:
- false if the method is not able to handle the request and
default implementation should be used instead
- Throws:
IOException
- if the copy fails
Built on December 12 2001. | Portions Copyright 1997-2001 Sun Microsystems, Inc. All rights reserved.