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, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forResource
findByName, getNameList, getNames, ofName, removeByName
public URLResource(URL url)
public URL getURL()
public String getName()
getName
in interface NamedResource
getName
in class AbstractIoResource<URL>
public InputStream openInputStream() throws IOException
InputStream
for the resource's dataIOException
- If failed to open the streamCopyright © 2008–2022 The Apache Software Foundation. All rights reserved.