Constructor and Description |
---|
URLResource(URL url)
Creates a new URL resource.
|
Modifier and Type | Method and Description |
---|---|
InputStream |
getInputStream()
Gets an input stream around the resource.
|
String |
toString() |
public URLResource(URL url)
url
- Non-null URL where resource is located.public InputStream getInputStream() throws IOException
Resource
InputStream.close()
unless otherwise noted.
Implementers should produce a new instance on every call to this method to provide for thread-safe usage patterns on a shared resource.
getInputStream
in interface Resource
IOException
- On IO errors.Copyright © 2003-2024 Virginia Tech. All Rights Reserved.