Update of /cvsroot/metamorphosis/ruper2/src/java/core/org/krysalis/ruper2/protocols/impl
In directory sc8-pr-cvs1:/tmp/cvs-serv19918/src/java/core/org/krysalis/ruper2/protocols/impl
Modified Files:
VfsProtocolOperationsProvider.java
FileProtocolOperationsProvider.java
BasicProtocolOperationsProvider.java
Log Message:
Completed 'clean' by adding delete to protocol providers
Index: VfsProtocolOperationsProvider.java
===================================================================
RCS file: /cvsroot/metamorphosis/ruper2/src/java/core/org/krysalis/ruper2/protocols/impl/VfsProtocolOperationsProvider.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** VfsProtocolOperationsProvider.java 9 Oct 2003 16:02:20 -0000 1.3
--- VfsProtocolOperationsProvider.java 13 Oct 2003 03:46:11 -0000 1.4
***************
*** 77,80 ****
--- 77,90 ----
}
+ public void delete(
+ VirtualResourceLocator locator,
+ ISelector selector)
+ throws Exception {
+ FileObject file = resolveAddress(locator);
+
+ // Remove file [if protocol allows]
+ VfsUtils.delete(file);
+ }
+
private void buildPathTo(FileObject container) throws Exception {
FileObject parent = container.getParent();
Index: FileProtocolOperationsProvider.java
===================================================================
RCS file: /cvsroot/metamorphosis/ruper2/src/java/core/org/krysalis/ruper2/protocols/impl/FileProtocolOperationsProvider.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** FileProtocolOperationsProvider.java 12 Oct 2003 18:12:05 -0000 1.1
--- FileProtocolOperationsProvider.java 13 Oct 2003 03:46:11 -0000 1.2
***************
*** 68,70 ****
--- 68,76 ----
}
+ public void delete(
+ VirtualResourceLocator locator,
+ ISelector selector)
+ throws Exception {
+ locator.getFile().delete();
+ }
}
Index: BasicProtocolOperationsProvider.java
===================================================================
RCS file: /cvsroot/metamorphosis/ruper2/src/java/core/org/krysalis/ruper2/protocols/impl/BasicProtocolOperationsProvider.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** BasicProtocolOperationsProvider.java 9 Oct 2003 21:15:02 -0000 1.4
--- BasicProtocolOperationsProvider.java 13 Oct 2003 03:46:11 -0000 1.5
***************
*** 60,62 ****
--- 60,71 ----
// :TODO: Get URL contents and write to a file...
}
+
+ public void delete(
+ VirtualResourceLocator locator,
+ ISelector selector)
+ throws Exception {
+ URL url = locator.getURL();
+
+ // :TODO: Delete...
+ }
}
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.