Top Description Constructors Methods
com.sun.star.lib.util

public final Class UrlToFileMapper

extends Object
Class Inheritance
Imports
java.io.File, .UnsupportedEncodingException, java.net.URI, .URISyntaxException, .URL, .URLEncoder

Maps Java URL representations to File representations, on any Java version. This used to be used to do URL to File mapping in pre-Java1.4 days, but since we now require Java 1.5, it is largely unnecessary.
Since
UDK 3.2.8

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
private static String
public static File

Returns:

a corresponding File, or null on failure.
mapUrlToFile
(URL
some URL, possibly null.
url
)

Maps Java URL representations to File representations.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

UrlToFileMapperback to summary
private UrlToFileMapper()

Method Detail

encodeback to summary
private static String encode(String url)
mapUrlToFileback to summary
public static File mapUrlToFile(URL url)

Maps Java URL representations to File representations.

Parameters
url:URL

some URL, possibly null.

Returns:File

a corresponding File, or null on failure.