| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
URLResource.JarURLUtil
Use JarURLConnection to parse jar: URL into URL to jar URL and entry.
|
| Modifier and Type | Field and Description |
|---|---|
private java.nio.ByteBuffer |
buffer |
private HttpClient |
client |
private static java.nio.ByteBuffer |
CLOSED |
private java.lang.String |
extra |
private long |
lastModified |
private int |
size |
private java.net.URL |
url |
| Constructor and Description |
|---|
URLResource(java.net.URL url,
HttpClient client)
This constructor is not for use other than by
Resource.fromURL(URL). |
| Modifier and Type | Method and Description |
|---|---|
java.nio.ByteBuffer |
buffer() |
void |
close() |
private java.nio.ByteBuffer |
getBuffer() |
java.lang.String |
getExtra() |
long |
lastModified() |
private java.io.InputStream |
open() |
java.io.InputStream |
openInputStream() |
void |
setExtra(java.lang.String extra) |
long |
size() |
java.lang.String |
toString() |
void |
write(java.io.OutputStream out) |
private static final java.nio.ByteBuffer CLOSED
private java.nio.ByteBuffer buffer
private final java.net.URL url
private final HttpClient client
private java.lang.String extra
private long lastModified
private int size
URLResource(java.net.URL url,
HttpClient client)
Resource.fromURL(URL).Resource.fromURL(URL)public java.nio.ByteBuffer buffer()
throws java.lang.Exception
private java.nio.ByteBuffer getBuffer()
throws java.lang.Exception
java.lang.Exceptionprivate java.io.InputStream open()
throws java.lang.Exception
java.lang.Exceptionpublic java.io.InputStream openInputStream()
throws java.lang.Exception
openInputStream in interface Resourcejava.lang.Exceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic void write(java.io.OutputStream out)
throws java.lang.Exception
public long lastModified()
lastModified in interface Resourcepublic long size()
throws java.lang.Exception
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOException