public class UrlResource extends AbstractResource
Constructor and Description |
---|
UrlResource(String path) |
UrlResource(URL url) |
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 UrlResource(String path) throws MalformedURLException
MalformedURLException
public UrlResource(URL url) throws MalformedURLException
MalformedURLException
public URL getURL() throws IOException
IOException
public Resource getRelativeResource(String relativePath) throws IOException
IOException
public boolean exists()
public InputStream getInputStream() throws IOException
IOException
public String getName()
Copyright © 2018 Brandao. All rights reserved.