public class UriResource extends ResourceSupport implements UriEnabledResource, PrivateUrlEnabledResource
| Constructor and Description |
|---|
UriResource(java.net.URI uri,
ResourceType resourceType,
boolean generated) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Date |
getLastModified() |
java.net.URL |
getPrivateUrl() |
long |
getSize() |
ResourceType |
getType() |
java.lang.String |
getUri() |
boolean |
isExisting() |
boolean |
isGenerated() |
java.io.InputStream |
openInputStream() |
equals, getMd5, hashCode, release, toString, touchpublic UriResource(@Nonnull
java.net.URI uri,
@Nonnull
ResourceType resourceType,
boolean generated)
@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 UriEnabledResource@Nonnull
public java.net.URL getPrivateUrl()
throws java.io.IOException
getPrivateUrl in interface PrivateUrlEnabledResourcejava.io.IOExceptionCopyright © 2015 echocat. All Rights Reserved.