| Modifier and Type | Field and Description |
|---|---|
| private final URLConnection |
| Access | Constructor and Description |
|---|---|
| public | URLResource(final String
the resource path name (must not be pathName, final URL null)the URL (must not be url)null)Construct a new instance for a URL. |
| public | URLResource(final String
the resource path name (must not be pathName, final URLConnection null)the URL connection (must not be connection)null)Construct a new instance. |
| public | URLResource(final JarURLConnection
the JAR URL connection (must not be jarConnection)null)Construct a new instance for a JAR URL connection. |
| Modifier and Type | Method and Description |
|---|---|
| public Instant | modifiedTime()
Overrides io. Returns the modification time of the resource, or |
| public InputStream | openStream()
Implements abstract io. Open an input stream to read this resource. |
| public long | size()
Implements abstract io. Returns the size of the resource, or |
| public URL | url()
Implements abstract io. Returns the resource URL (not |
| connection | back to summary |
|---|---|
| private final URLConnection connection | |
| URLResource | back to summary |
|---|---|
| public URLResource(final String pathName, final URL url) throws IOException Construct a new instance for a URL.
| |
| URLResource | back to summary |
|---|---|
| public URLResource(final String pathName, final URLConnection connection) Construct a new instance.
| |
| URLResource | back to summary |
|---|---|
| public URLResource(final JarURLConnection jarConnection) Construct a new instance for a JAR URL connection. The JAR entry name is used as the resource name.
| |
| modifiedTime | back to summary |
|---|---|
| public Instant modifiedTime() Overrides io. Doc from io. Returns the modification time of the resource, or
| |
| openStream | back to summary |
|---|---|
| public InputStream openStream() throws IOException Implements abstract io. Doc from io. Open an input stream to read this resource.
| |
| size | back to summary |
|---|---|
| public long size() Implements abstract io. Doc from io. Returns the size of the resource, or
| |
| url | back to summary |
|---|---|
| public URL url() Implements abstract io. Doc from io. Returns the resource URL (not
| |