summaryrefslogtreecommitdiff
path: root/jurt
diff options
context:
space:
mode:
authorIvo Hinkelmann <ihi@openoffice.org>2007-11-23 12:12:19 +0000
committerIvo Hinkelmann <ihi@openoffice.org>2007-11-23 12:12:19 +0000
commit0de3dc262767dcf0b7f31d2b7e5bb78adee73110 (patch)
tree6f61230868e1013301e255895d7beb4edc8f9a74 /jurt
parent536cb4f9a607a04fd9b008be19465747428915ba (diff)
INTEGRATION: CWS sb79 (1.3.56); FILE MERGED
2007/09/26 14:55:02 sb 1.3.56.1: #i80838# Published UrlToFileMapper.
Diffstat (limited to 'jurt')
-rw-r--r--jurt/com/sun/star/lib/util/UrlToFileMapper.java21
1 files changed, 16 insertions, 5 deletions
diff --git a/jurt/com/sun/star/lib/util/UrlToFileMapper.java b/jurt/com/sun/star/lib/util/UrlToFileMapper.java
index 4e0246224f27..7cdbd8f6c463 100644
--- a/jurt/com/sun/star/lib/util/UrlToFileMapper.java
+++ b/jurt/com/sun/star/lib/util/UrlToFileMapper.java
@@ -4,9 +4,9 @@
*
* $RCSfile: UrlToFileMapper.java,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: rt $ $Date: 2005-09-07 19:05:37 $
+ * last change: $Author: ihi $ $Date: 2007-11-23 13:12:19 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -43,8 +43,12 @@ import java.net.URLClassLoader;
import java.net.URLDecoder;
import java.net.URLEncoder;
-
-public class UrlToFileMapper {
+/**
+ * Maps Java URL representations to File representations, on any Java version.
+ *
+ * @since UDK 3.2.8
+ */
+public final class UrlToFileMapper {
// java.net.URLEncoder.encode(String, String) and java.net.URI are only
// available since Java 1.4:
@@ -65,7 +69,12 @@ public class UrlToFileMapper {
}
}
-
+ /**
+ * Maps Java URL representations to File representations.
+ *
+ * @param url some URL, possibly null.
+ * @return a corresponding File, or null on failure.
+ */
public static File mapUrlToFile(URL url) {
if (url == null) {
return null;
@@ -156,4 +165,6 @@ public class UrlToFileMapper {
}
return buf.toString();
}
+
+ private UrlToFileMapper() {}
}