public abstract class UrlResourceSupport extends ResourceSupport implements UriEnabledResource
| Constructor and Description |
|---|
UrlResourceSupport(java.net.URL url,
ResourceType resourceType,
boolean generated) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Date |
getLastModified() |
long |
getSize() |
ResourceType |
getType() |
java.lang.String |
getUri() |
java.net.URL |
getUrl() |
boolean |
isExisting() |
boolean |
isGenerated() |
protected void |
loadLazyValues() |
java.io.InputStream |
openInputStream() |
equals, getMd5, hashCode, release, toString, touchpublic UrlResourceSupport(@Nonnull
java.net.URL url,
@Nonnull
ResourceType resourceType,
boolean generated)
@Nonnull public java.net.URL getUrl()
@Nonnull
public java.io.InputStream openInputStream()
throws java.io.IOException
openInputStream in interface Resourcejava.io.IOException@Nonnull public ResourceType getType() throws java.io.IOException
public long getSize()
throws java.io.IOException
getSize in interface ResourcegetSize in class ResourceSupportjava.io.IOExceptionpublic java.util.Date getLastModified()
throws java.io.IOException
getLastModified in interface Resourcejava.io.IOExceptionpublic boolean isExisting()
throws java.io.IOException
isExisting in interface Resourcejava.io.IOExceptionpublic boolean isGenerated()
throws java.io.IOException
isGenerated in interface Resourcejava.io.IOException@Nonnull public java.lang.String getUri()
getUri in interface UriEnabledResourceprotected void loadLazyValues()
throws java.io.IOException
java.io.IOExceptionCopyright © 2015 echocat. All Rights Reserved.