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
commit95a4a07ddb5f2daa036c767555df426c33ed6905 (patch)
tree3566dc708c6906f024d7823384cf21c00f0ec8b6 /jurt
parent12e511ef08c6db27678b80020144a37743b3aaf8 (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 ee5181163..c069ee1b2 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() {}
}