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

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

Introduction

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

The text is from its open source code.

Subclass

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

Constructor

ClassPathResource(String path)
Create a new ClassPathResource for ClassLoader usage.
ClassPathResource(String path, @Nullable ClassLoader classLoader)
Create a new ClassPathResource for ClassLoader usage.
ClassPathResource(String path, @Nullable Class clazz)
Create a new ClassPathResource for Class usage.

Method

ResourcecreateRelative(String relativePath)
This implementation creates a ClassPathResource, applying the given path relative to the path of the underlying resource of this descriptor.
booleanexists()
This implementation checks for the resolution of a resource URL.
FilegetFile()
This implementation returns a File reference for the underlying class path resource, provided that it refers to a file in the file system.
StringgetFilename()
This implementation returns the name of the file that this class path resource refers to.
InputStreamgetInputStream()
This implementation opens an InputStream for the given class path resource.
StringgetPath()
Return the path for this resource (as resource path within the class path).
URIgetURI()
This implementation builds a URI based on the URL returned by #getURL() .
URLgetURL()
This implementation returns a URL for the underlying class path resource, if available.
booleanisReadable()