public interface Resource extends Closeable
| Modifier and Type | Method and Description |
|---|---|
ByteBuffer |
buffer() |
static Resource |
fromURL(URL url) |
static Resource |
fromURL(URL url,
HttpClient client) |
String |
getExtra() |
long |
lastModified() |
InputStream |
openInputStream() |
void |
setExtra(String extra) |
long |
size() |
void |
write(OutputStream out) |
InputStream openInputStream() throws Exception
Exceptionvoid write(OutputStream out) throws Exception
Exceptionlong lastModified()
void setExtra(String extra)
String getExtra()
ByteBuffer buffer() throws Exception
Exceptionstatic Resource fromURL(URL url) throws IOException
IOExceptionstatic Resource fromURL(URL url, HttpClient client) throws IOException
IOExceptionCopyright © 2021. All rights reserved.