summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2004-09-08 13:34:54 +0000
committerOliver Bolte <obo@openoffice.org>2004-09-08 13:34:54 +0000
commit42d6d0786423472df11749bab6d2bff70e4634f4 (patch)
tree4190f95c86fa506280c87dbcadffde1697129e46
parent15f153fd0c1fac353c762653139bc26d03f4a411 (diff)
INTEGRATION: CWS qwizards2 (1.2.2); FILE MERGED
2004/07/19 13:53:33 rpiterman 1.2.2.2: added a getPathFilename method 2004/06/02 15:05:08 rpiterman 1.2.2.1: made some methods static instead of instance
-rw-r--r--wizards/com/sun/star/wizards/common/FileAccess.java22
1 files changed, 16 insertions, 6 deletions
diff --git a/wizards/com/sun/star/wizards/common/FileAccess.java b/wizards/com/sun/star/wizards/common/FileAccess.java
index 0aabea28c134..e718ec09bf33 100644
--- a/wizards/com/sun/star/wizards/common/FileAccess.java
+++ b/wizards/com/sun/star/wizards/common/FileAccess.java
@@ -2,9 +2,9 @@
*
* $RCSfile: FileAccess.java,v $
*
-* $Revision: 1.3 $
+* $Revision: 1.4 $
*
-* last change: $Author: hr $ $Date: 2004-08-02 17:18:56 $
+* last change: $Author: obo $ $Date: 2004-09-08 14:34:54 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -393,6 +393,7 @@ public class FileAccess {
return filenameConverter.getSystemPathFromFileURL(parentURL + (((childURL == null || childURL.equals("")) ? "" : "/" + childURL)));
}
+
/**
* @author rpiterman
* @param filename
@@ -491,15 +492,24 @@ public class FileAccess {
}
/**
- * @author rpiterman
- * @param path
- * @return
- */
+ * @author rpiterman
+ * @param path
+ * @return
+ */
public static String getFilename(String path) {
return getFilename(path, "/");
}
/**
+ * return the filename out of a system-dependent path
+ * @param path
+ * @return
+ */
+ public static String getPathFilename(String path) {
+ return getFilename(path, File.separator);
+ }
+
+ /**
* @author rpiterman
* @param path
* @return