Uses of Class
java.net.URL
Packages that useURL
Package
Description
Provides the classes necessary to create an applet and the classes an applet uses to communicate with its applet context.
Contains all of the classes for creating user interfaces and for painting graphics and images.
Provides classes and interfaces relating to bean context.
Provides for system input and output through data streams, serialization and the file system.
Provides classes that are fundamental to the design of the Java programming language.
Provides the classes for implementing networking applications.
Provides classes and interfaces for supporting the server side of RMI.
Provides the classes and interfaces for the security framework.
Provides the API for accessing and processing data stored in a data source (usually a relational database) using the Java programming language.
The main package of the Java Image I/O API.
Provides classes for the secure socket package.
Provides interfaces and classes for I/O, sequencing, and synthesis of MIDI (Musical Instrument Digital Interface) data.
Supplies interfaces for service providers to implement when offering new MIDI devices, MIDI file readers and writers, or sound bank readers.
Provides interfaces and classes for capture, processing, and playback of sampled audio data.
Supplies abstract classes for service providers to subclass when offering new audio devices, sound file readers and writers, or audio format converters.
Provides the API for server side data source access and processing from the Java programming language.
Standard interfaces and base classes for JDBC
RowSet implementations.Provides utility classes to allow serializable mappings between SQL types and data types in the Java programming language.
Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms.
Provides for events fired by Swing components.
Synth is a skinnable look and feel in which all painting is delegated.
Provides the class
HTMLEditorKit and supporting classes for creating HTML text editors. Provides an API for validation of XML documents.
Uses ofURL injava.applet
Methods injava.applet that returnURLModifier and TypeMethodDescriptionApplet.getCodeBase()Deprecated, for removal: This API element is subject to removal in a future version.Gets the baseURL.AppletStub.getCodeBase()Deprecated, for removal: This API element is subject to removal in a future version.Gets the baseURL.Applet.getDocumentBase()Deprecated, for removal: This API element is subject to removal in a future version.Gets theURLof the document in which this applet is embedded.AppletStub.getDocumentBase()Deprecated, for removal: This API element is subject to removal in a future version.Gets theURLof the document in which the applet is embedded.Methods injava.applet with parameters of typeURLModifier and TypeMethodDescriptionApplet.getAudioClip(URL url) Deprecated, for removal: This API element is subject to removal in a future version.Returns theAudioClipobject specified by theURLargument.Applet.getAudioClip(URL url,String name) Deprecated, for removal: This API element is subject to removal in a future version.Returns theAudioClipobject specified by theURLandnamearguments.AppletContext.getAudioClip(URL url) Deprecated, for removal: This API element is subject to removal in a future version.Creates an audio clip.Deprecated, for removal: This API element is subject to removal in a future version.Returns anImageobject that can then be painted on the screen.Deprecated, for removal: This API element is subject to removal in a future version.Returns anImageobject that can then be painted on the screen.Deprecated, for removal: This API element is subject to removal in a future version.Returns anImageobject that can then be painted on the screen.static finalAudioClipApplet.newAudioClip(URL url) Deprecated, for removal: This API element is subject to removal in a future version.Get an audio clip from the givenURL.voidDeprecated, for removal: This API element is subject to removal in a future version.Plays the audio clip at the specified absoluteURL.voidDeprecated, for removal: This API element is subject to removal in a future version.Plays the audio clip given theURLand a specifier that is relative to it.voidAppletContext.showDocument(URL url) Deprecated, for removal: This API element is subject to removal in a future version.Requests that the browser or applet viewer show the Web page indicated by theurlargument.voidAppletContext.showDocument(URL url,String target) Deprecated, for removal: This API element is subject to removal in a future version.Requests that the browser or applet viewer show the Web page indicated by theurlargument.Uses ofURL injava.awt
Modifier and TypeMethodDescriptionSplashScreen.getImageURL()Returns the current splash screen image.Modifier and TypeMethodDescriptionabstractImageToolkit.createImage(URL url) Returns an image which gets pixel data from the specified URL.abstractImageReturns an image which gets pixel data from the specified URL.voidSplashScreen.setImageURL(URL imageURL) Changes the splash screen image.Uses ofURL injava.beans.beancontext
Methods injava.beans.beancontext that returnURLModifier and TypeMethodDescriptionBeanContext.getResource(String name,BeanContextChild bcc) Deprecated, for removal: This API element is subject to removal in a future version.Analogous tojava.lang.ClassLoader.getResource(), this method allows aBeanContextimplementation to interpose behavior between the childComponentand underlyingClassLoader.BeanContextSupport.getResource(String name,BeanContextChild bcc) Deprecated, for removal: This API element is subject to removal in a future version.Uses ofURL injava.io
Uses ofURL injava.lang
Modifier and TypeMethodDescriptionprotectedURLClassLoader.findResource(String name) Finds the resource with the given name.protectedURLClassLoader.findResource(String moduleName,String name) Returns a URL to a resource in a module defined to this class loader.Class.getResource(String name) Finds a resource with a given name.ClassLoader.getResource(String name) Finds the resource with the given name.staticURLClassLoader.getSystemResource(String name) Find a resource of the specified name from the search path used to load classes.Modifier and TypeMethodDescriptionprotectedEnumeration<URL> ClassLoader.findResources(String name) Returns an enumeration ofURLobjects representing all the resources with the given name.ClassLoader.getResources(String name) Finds all the resources with the given name.staticEnumeration<URL> ClassLoader.getSystemResources(String name) Finds all resources of the specified name from the search path used to load classes.Returns a stream whose elements are the URLs of all the resources with the given name.Modifier and TypeMethodDescriptionprotectedPackageClassLoader.definePackage(String name,String specTitle,String specVersion,String specVendor,String implTitle,String implVersion,String implVendor,URL sealBase) Defines a package byname in thisClassLoader.booleanReturns true if this package is sealed with respect to the specified code sourceurl.Uses ofURL injava.net
Modifier and TypeFieldDescriptionprotectedURLURLConnection.urlThe URL represents the remote object on the World Wide Web to which this connection is opened.Modifier and TypeMethodDescriptionURLClassLoader.findResource(String name) Finds the resource with the specified name on the URL search path.JarURLConnection.getJarFileURL()Returns the URL for the Jar file for this connection.protectedURLAuthenticator.getRequestingURL()Returns the URL that resulted in this request for authentication.URLConnection.getURL()Returns the value of thisURLConnection'sURLfield.URL[]URLClassLoader.getURLs()Returns the search path of URLs for loading classes and resources.staticURLURL.of(URI uri,URLStreamHandler handler) Creates a URL from a URI, as if by invokinguri.toURL(), but associating it with the givenURLStreamHandler, if allowed.URI.toURL()Constructs a URL from this URI.Modifier and TypeMethodDescriptionURLClassLoader.findResources(String name) Returns an Enumeration of URLs representing all of the resources on the URL search path having the specified name.Modifier and TypeMethodDescriptionprotected voidAppends the specified URL to the list of URLs to search for classes and resources.protectedPackageURLClassLoader.definePackage(String name,Manifest man,URL url) Defines a new package by name in thisURLClassLoader.protected booleanProvides the default equals calculation.protectedInetAddressURLStreamHandler.getHostAddress(URL u) Get the IP address of our host.protected intProvides the default hash calculation.protected booleanURLStreamHandler.hostsEqual(URL u1,URL u2) Compares the host components of two URLs.staticURLClassLoaderURLClassLoader.newInstance(URL[] urls) Creates a new instance of URLClassLoader for the specified URLs and default parent class loader.staticURLClassLoaderURLClassLoader.newInstance(URL[] urls,ClassLoader parent) Creates a new instance of URLClassLoader for the specified URLs and parent class loader.protected abstractURLConnectionURLStreamHandler.openConnection(URL u) Opens a connection to the object referenced by theURLargument.protectedURLConnectionURLStreamHandler.openConnection(URL u,Proxy p) Same as openConnection(URL), except that the connection will be made through the specified proxy; Protocol handlers that do not support proxying will ignore the proxy parameter and make a normal connection.protected voidParses the string representation of aURLinto aURLobject.staticPasswordAuthenticationAuthenticator.requestPasswordAuthentication(String host,InetAddress addr, int port,String protocol,String prompt,String scheme,URL url,Authenticator.RequestorType reqType) Ask the authenticator that has been registered with the system for a password.staticPasswordAuthenticationAuthenticator.requestPasswordAuthentication(Authenticator authenticator,String host,InetAddress addr, int port,String protocol,String prompt,String scheme,URL url,Authenticator.RequestorType reqType) Ask the givenauthenticatorfor a password.Authenticator.requestPasswordAuthenticationInstance(String host,InetAddress addr, int port,String protocol,String prompt,String scheme,URL url,Authenticator.RequestorType reqType) Ask this authenticator for a password.booleanCompares two URLs, excluding the fragment component.protected booleanCompare two urls to see whether they refer to the same file, i.e., having the same protocol, host, port, and path.protected voidDeprecated.Use setURL(URL, String, String, int, String, String, String, String);protected voidURLStreamHandler.setURL(URL u,String protocol,String host, int port,String authority,String userInfo,String path,String query,String ref) Sets the fields of theURLargument to the indicated values.protectedStringURLStreamHandler.toExternalForm(URL u) Converts aURLof a specific protocol to aString.ModifierConstructorDescriptionprotectedConstructor for the HttpURLConnection.protectedJarURLConnection(URL url) Creates the new JarURLConnection to the specified URL.Deprecated.UseURI.toURL()to construct an instance of URL.URL(URL context,String spec,URLStreamHandler handler) Deprecated.Useof(URI, URLStreamHandler)to construct an instance of URL associated with a custom protocol handler.URLClassLoader(String name,URL[] urls,ClassLoader parent) Constructs a new namedURLClassLoaderfor the specified URLs.URLClassLoader(String name,URL[] urls,ClassLoader parent,URLStreamHandlerFactory factory) Constructs a new namedURLClassLoaderfor the specified URLs, parent class loader, and URLStreamHandlerFactory.URLClassLoader(URL[] urls) Constructs a new URLClassLoader for the specified URLs using the default delegation parentClassLoader.URLClassLoader(URL[] urls,ClassLoader parent) Constructs a new URLClassLoader for the given URLs.URLClassLoader(URL[] urls,ClassLoader parent,URLStreamHandlerFactory factory) Constructs a new URLClassLoader for the specified URLs, parent class loader, and URLStreamHandlerFactory.protectedURLConnection(URL url) Constructs a URL connection to the specified URL.Uses ofURL injava.rmi.server
Methods injava.rmi.server with parameters of typeURLUses ofURL injava.security
Methods injava.security that returnURLModifier and TypeMethodDescriptionfinalURLCodeSource.getLocation()Returns the location associated with thisCodeSource.Constructors injava.security with parameters of typeURLModifierConstructorDescriptionCodeSource(URL url,Certificate[] certs) Constructs aCodeSourceand associates it with the specified location and set of certificates.CodeSource(URL url,CodeSigner[] signers) Constructs aCodeSourceand associates it with the specified location and set of code signers.Uses ofURL injava.sql
Modifier and TypeMethodDescriptionCallableStatement.getURL(int parameterIndex) Retrieves the value of the designated JDBCDATALINKparameter as ajava.net.URLobject.Retrieves the value of a JDBCDATALINKparameter as ajava.net.URLobject.ResultSet.getURL(int columnIndex) Retrieves the value of the designated column in the current row of thisResultSetobject as ajava.net.URLobject in the Java programming language.Retrieves the value of the designated column in the current row of thisResultSetobject as ajava.net.URLobject in the Java programming language.SQLInput.readURL()Reads an SQLDATALINKvalue from the stream and returns it as ajava.net.URLobject in the Java programming language.Modifier and TypeMethodDescriptionvoidSets the designated parameter to the givenjava.net.URLobject.voidSets the designated parameter to the givenjava.net.URLvalue.voidWrites a SQLDATALINKvalue to the stream.Uses ofURL injavax.imageio
Methods injavax.imageio with parameters of typeURLModifier and TypeMethodDescriptionstaticBufferedImageReturns aBufferedImageas the result of decoding a suppliedURLwith anImageReaderchosen automatically from among those currently registered.Uses ofURL injavax.net.ssl
Constructors injavax.net.ssl with parameters of typeURLModifierConstructorDescriptionprotectedHttpsURLConnection(URL url) Creates anHttpsURLConnectionusing the URL specified.Uses ofURL injavax.sound.midi
Methods injavax.sound.midi with parameters of typeURLModifier and TypeMethodDescriptionstaticMidiFileFormatMidiSystem.getMidiFileFormat(URL url) Obtains the MIDI file format of the data in the specified URL.staticSequenceMidiSystem.getSequence(URL url) Obtains a MIDI sequence from the specified URL.staticSoundbankMidiSystem.getSoundbank(URL url) Constructs aSoundbankby reading it from the specified URL.Uses ofURL injavax.sound.midi.spi
Methods injavax.sound.midi.spi with parameters of typeURLModifier and TypeMethodDescriptionabstractMidiFileFormatMidiFileReader.getMidiFileFormat(URL url) Obtains the MIDI file format of theURLprovided.abstractSequenceMidiFileReader.getSequence(URL url) Obtains a MIDI sequence from theURLprovided.abstractSoundbankSoundbankReader.getSoundbank(URL url) Obtains a soundbank object from theURLprovided.Uses ofURL injavax.sound.sampled
Methods injavax.sound.sampled with parameters of typeURLModifier and TypeMethodDescriptionstaticAudioFileFormatAudioSystem.getAudioFileFormat(URL url) Obtains the audio file format of the specifiedURL.staticAudioInputStreamAudioSystem.getAudioInputStream(URL url) Obtains an audio input stream from theURLprovided.Uses ofURL injavax.sound.sampled.spi
Methods injavax.sound.sampled.spi with parameters of typeURLModifier and TypeMethodDescriptionabstractAudioFileFormatAudioFileReader.getAudioFileFormat(URL url) Obtains the audio file format of theURLprovided.abstractAudioInputStreamAudioFileReader.getAudioInputStream(URL url) Obtains an audio input stream from theURLprovided.Uses ofURL injavax.sql
Uses ofURL injavax.sql.rowset
Methods injavax.sql.rowset with parameters of typeURLUses ofURL injavax.sql.rowset.serial
Methods injavax.sql.rowset.serial that returnURLModifier and TypeMethodDescriptionSerialDatalink.getDatalink()Returns a new URL that is a copy of thisSerialDatalinkobject.SQLInputImpl.readURL()Reads an SQLDATALINKvalue from the stream and returns it as anURLobject in the Java programming language.Methods injavax.sql.rowset.serial with parameters of typeURLModifier and TypeMethodDescriptionvoidWrites anjava.sql.Type.DATALINKobject in the Java programming language to thisSQLOutputImplobject.Constructors injavax.sql.rowset.serial with parameters of typeURLModifierConstructorDescriptionSerialDatalink(URL url) Constructs a newSerialDatalinkobject from the givenjava.net.URLobject.Uses ofURL injavax.swing
Methods injavax.swing that returnURLMethods injavax.swing with parameters of typeURLModifier and TypeMethodDescriptionprotectedInputStreamFetches a stream for the given URL, which is about to be loaded by thesetPagemethod.voidSets the current URL being displayed.Constructors injavax.swing with parameters of typeURLUses ofURL injavax.swing.event
Methods injavax.swing.event that returnURLConstructors injavax.swing.event with parameters of typeURLModifierConstructorDescriptionHyperlinkEvent(Object source,HyperlinkEvent.EventType type,URL u) Creates a new object representing a hypertext link event.HyperlinkEvent(Object source,HyperlinkEvent.EventType type,URL u,String desc) Creates a new object representing a hypertext link event.HyperlinkEvent(Object source,HyperlinkEvent.EventType type,URL u,String desc,Element sourceElement) Creates a new object representing a hypertext link event.HyperlinkEvent(Object source,HyperlinkEvent.EventType type,URL u,String desc,Element sourceElement,InputEvent inputEvent) Creates a new object representing a hypertext link event.Uses ofURL injavax.swing.plaf.synth
Methods injavax.swing.plaf.synth with parameters of typeURLModifier and TypeMethodDescriptionvoidDeprecated, for removal: This API element is subject to removal in a future version.Uses ofURL injavax.swing.text.html
Methods injavax.swing.text.html that returnURLModifier and TypeMethodDescriptionHTMLDocument.getBase()Returns the location to resolve relative URLs against.StyleSheet.getBase()Returns the base.ImageView.getImageURL()Return a URL for the image source, or null if it could not be determined.Methods injavax.swing.text.html with parameters of typeURLModifier and TypeMethodDescriptionvoidStyleSheet.importStyleSheet(URL url) Imports a style sheet fromurl.voidLoads a set of rules that have been specified in terms of CSS1 grammar.voidSets the location to resolve relative URLs against.voidSets the base.Constructors injavax.swing.text.html with parameters of typeURLModifierConstructorDescriptionHTMLFrameHyperlinkEvent(Object source,HyperlinkEvent.EventType type,URL targetURL,String targetFrame) Creates a new object representing a html frame hypertext link event.HTMLFrameHyperlinkEvent(Object source,HyperlinkEvent.EventType type,URL targetURL,String desc,String targetFrame) Creates a new object representing a hypertext link event.HTMLFrameHyperlinkEvent(Object source,HyperlinkEvent.EventType type,URL targetURL,String desc,Element sourceElement,InputEvent inputEvent,String targetFrame) Creates a new object representing a hypertext link event.HTMLFrameHyperlinkEvent(Object source,HyperlinkEvent.EventType type,URL targetURL,String desc,Element sourceElement,String targetFrame) Creates a new object representing a hypertext link event.HTMLFrameHyperlinkEvent(Object source,HyperlinkEvent.EventType type,URL targetURL,Element sourceElement,String targetFrame) Creates a new object representing a hypertext link event.Uses ofURL injavax.xml.validation
Methods injavax.xml.validation with parameters of typeURL