Java org.springframework.core.io UrlResource fields, constructors, methods, implement or subclass

Example usage for Java org.springframework.core.io UrlResource fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.springframework.core.io UrlResource.

The text is from its open source code.

Subclass

org.springframework.core.io.UrlResource has subclasses.
Click this link to see all its subclasses.

Constructor

UrlResource(URI uri)
Create a new UrlResource based on the given URI object.
UrlResource(URL url)
Create a new UrlResource based on the given URL object.
UrlResource(String path)
Create a new UrlResource based on a URL path.
UrlResource(String protocol, String location)
Create a new UrlResource based on a URI specification.

Method

booleanexists()
FilegetFile()
This implementation returns a File reference for the underlying URL/URI, provided that it refers to a file in the file system.
StringgetFilename()
This implementation returns the name of the file that this URL refers to.
InputStreamgetInputStream()
This implementation opens an InputStream for the given URL.
URLgetURL()
This implementation returns the underlying URL reference.