public class URLResource extends Object implements Resource
| Constructor and Description |
|---|
URLResource(URL url) |
| Modifier and Type | Method and Description |
|---|---|
ByteBuffer |
buffer() |
void |
close() |
String |
getExtra() |
long |
lastModified() |
InputStream |
openInputStream() |
void |
setExtra(String extra) |
long |
size() |
String |
toString() |
void |
write(OutputStream out) |
public URLResource(URL url)
public ByteBuffer buffer() throws Exception
public InputStream openInputStream() throws Exception
openInputStream in interface ResourceExceptionpublic void write(OutputStream out) throws Exception
public long lastModified()
lastModified in interface Resourcepublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2019 aQute SARL. All rights reserved.