public class MemoryResource extends ResourceSupport
| Constructor and Description |
|---|
MemoryResource(byte[] content,
byte[] md5,
ResourceType type,
boolean generated) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Date |
getLastModified() |
byte[] |
getMd5() |
long |
getSize() |
ResourceType |
getType() |
boolean |
isExisting() |
boolean |
isGenerated() |
java.io.InputStream |
openInputStream() |
public MemoryResource(@Nonnull
byte[] content,
@Nonnull
byte[] md5,
@Nonnull
ResourceType type,
boolean generated)
@Nonnull
public java.io.InputStream openInputStream()
throws java.io.IOException
java.io.IOException@Nonnull public ResourceType getType()
@Nonnull public byte[] getMd5()
getMd5 in interface ResourcegetMd5 in class ResourceSupportpublic long getSize()
getSize in interface ResourcegetSize in class ResourceSupportpublic java.util.Date getLastModified()
public boolean isExisting()
throws java.io.IOException
java.io.IOExceptionpublic boolean isGenerated()
throws java.io.IOException
java.io.IOExceptionCopyright © 2015 echocat. All Rights Reserved.