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, toStringpublic UrlResource(String path) throws MalformedURLException
MalformedURLExceptionpublic UrlResource(URL url) throws MalformedURLException
MalformedURLExceptionpublic URL getURL() throws IOException
IOExceptionpublic Resource getRelativeResource(String relativePath) throws IOException
IOExceptionpublic boolean exists()
public InputStream getInputStream() throws IOException
IOExceptionpublic String getName()
Copyright © 2026 Brandao. All rights reserved.