@ThreadSafe public class NameEnabledFileResource extends FileResource implements NameEnabledResource
| Constructor and Description |
|---|
NameEnabledFileResource(java.io.File file,
byte[] md5,
ResourceType type) |
NameEnabledFileResource(java.io.File file,
byte[] md5,
ResourceType type,
boolean generated) |
NameEnabledFileResource(java.io.File file,
byte[] md5,
ResourceType type,
java.lang.String name) |
NameEnabledFileResource(java.io.File file,
byte[] md5,
ResourceType type,
java.lang.String name,
boolean generated) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getName() |
java.io.File |
getNameFile() |
void |
release() |
void |
setName(java.lang.String name) |
getFile, getLastModified, getLoggingFile, getMd5, getPrivateUrl, getProperties, getPropertiesFile, getPropertiesInternal, getProperty, getPropertyValueType, getSize, getType, isExisting, isGenerated, logMessage, logMessageIterator, openInputStream, readNextMessageOf, removeProperty, saveProperties, setProperty, touchequals, hashCode, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetLastModified, getMd5, getSize, getType, isExisting, isGenerated, openInputStream, touchpublic NameEnabledFileResource(@Nonnull
java.io.File file,
@Nonnull
byte[] md5,
@Nonnull
ResourceType type)
public NameEnabledFileResource(@Nonnull
java.io.File file,
@Nonnull
byte[] md5,
@Nonnull
ResourceType type,
@Nonnull
java.lang.String name)
throws java.io.IOException
java.io.IOExceptionpublic NameEnabledFileResource(@Nonnull
java.io.File file,
@Nonnull
byte[] md5,
@Nonnull
ResourceType type,
boolean generated)
public NameEnabledFileResource(@Nonnull
java.io.File file,
@Nonnull
byte[] md5,
@Nonnull
ResourceType type,
@Nonnull
java.lang.String name,
boolean generated)
throws java.io.IOException
java.io.IOException@Nonnull
public java.lang.String getName()
throws java.io.IOException
getName in interface NameEnabledResourcejava.io.IOExceptionpublic void setName(java.lang.String name)
throws java.io.IOException
java.io.IOExceptionpublic void release()
throws java.io.IOException
release in interface Resourcerelease in class FileResourcejava.io.IOException@Nonnull public java.io.File getNameFile()
Copyright © 2015 echocat. All Rights Reserved.