public class URLResource extends AbstractIoResource<URL>
BY_NAME_COMPARATOR, NAME_EXTRACTOR| Constructor and Description |
|---|
URLResource(URL url) |
| Modifier and Type | Method and Description |
|---|---|
String |
getName() |
URL |
getURL() |
InputStream |
openInputStream() |
getResourceType, getResourceValue, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforResourcefindByName, getNameList, getNames, ofName, removeByNamepublic URLResource(URL url)
public URL getURL()
public String getName()
getName in interface NamedResourcegetName in class AbstractIoResource<URL>public InputStream openInputStream() throws IOException
InputStream for the resource's dataIOException - If failed to open the streamCopyright © 2018–2020 The Apache Software Foundation. All rights reserved.