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 Resource
Exception
public void write(OutputStream out) throws Exception
public long lastModified()
lastModified
in interface Resource
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2021 aQute SARL. All rights reserved.