public class ClassPathResource extends AbstractResource
Constructor and Description |
---|
ClassPathResource(Class clazz,
ClassLoader classLoader,
String path) |
ClassPathResource(ClassLoader classLoader,
String path) |
ClassPathResource(Class clazz,
String path) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object e) |
boolean |
exists() |
InputStream |
getInputStream() |
String |
getName() |
Resource |
getRelativeResource(String relativePath) |
URL |
getURL() |
cleanPath, createRelativePath, isOpen, toString
public ClassPathResource(ClassLoader classLoader, String path)
public ClassPathResource(Class clazz, ClassLoader classLoader, String path)
public URL getURL() throws IOException
IOException
public Resource getRelativeResource(String relativePath) throws IOException
IOException
public InputStream getInputStream() throws IOException
IOException
public boolean exists()
public String getName()
Copyright © 2018 Brandao. All rights reserved.