APIdia Launch Partner
Top Description Fields Constructors Methods
jdk.internal.loader

pack-priv final Class FileURLMapper

extends Object
Class Inheritance
Imports
java.io.IOException, .File, java.net.URL, sun.net.www.ParseUtil

(Solaris) platform specific handling for file: URLs . urls must not contain a hostname in the authority field other than "localhost". This implementation could be updated to map such URLs on to /net/host/...
Author
Michael McMahon

Field Summary

Modifier and TypeField and Description
private String
private final URL

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv boolean
exists()

Checks whether the file identified by the URL exists.

pack-priv String
getPath()

Returns: the platform specific path corresponding to the URL so long as the URL does not contain a hostname in the authority field.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

pathback to summary
private String path
urlback to summary
private final URL url

Constructor Detail

FileURLMapperback to summary
pack-priv FileURLMapper(URL url)

Method Detail

existsback to summary
pack-priv boolean exists() throws IOException

Checks whether the file identified by the URL exists.

getPathback to summary
pack-priv String getPath() throws IOException
Returns:String

the platform specific path corresponding to the URL so long as the URL does not contain a hostname in the authority field.