How is this for an interface for file operations?
public interface FileOperation {
void save(final InputStream newContents)
throws FileSystemException; void saveAndBackup(final InputStream newContents)
throws FileSystemException; void copyTo(final FileName newLocation)
throws FileSystemException; void copyToAndOverwrite(final FileName newLocation)
throws FileSystemException; void moveTo(final FileName newLocation)
throws FileSystemException; void moveToAndOverwrite(final FileName newLocation)
throws FileSystemException;
}I think this covers 80%+ of use cases. This is your classic cut/copy/paste operations with a file manager and the usual file-saving operation of an editor.
Cheers, --binkley
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
