public static class SoftwareServerAuxiliary.CachedFileData extends SoftwareServerAuxiliary.Data implements Serializable, Comparable
Modifier and Type | Field and Description |
---|---|
static long |
serialVersionUID |
Constructor and Description |
---|
SoftwareServerAuxiliary.CachedFileData() |
SoftwareServerAuxiliary.CachedFileData(SoftwareServerAuxiliary.CachedFileData cached_file_data,
String format)
Class copy constructor.
|
SoftwareServerAuxiliary.CachedFileData(SoftwareServerAuxiliary.FileData file_data,
int session,
String cache_path)
Class constructor.
|
SoftwareServerAuxiliary.CachedFileData(SoftwareServerAuxiliary.FileData file_data,
String format)
Class constructor.
|
SoftwareServerAuxiliary.CachedFileData(String filename)
Class constructor.
|
SoftwareServerAuxiliary.CachedFileData(String filename,
String format)
Class constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Object object)
Compare this object to another object.
|
boolean |
exists(int session,
String cache_path)
Check if the file exists in the cache.
|
String |
getCacheFilename(int session)
Get the file name of the cached file.
|
String |
getCacheName(int session)
Get the name of the cached file.
|
String |
getFormat()
Get the files format.
|
String |
getName()
Get the files name.
|
String |
toString()
Get a string representation of this instance.
|
SoftwareServerAuxiliary.FileData |
uncache(int session,
String cache_path)
Retrieve the file data from the cache.
|
public static final long serialVersionUID
public SoftwareServerAuxiliary.CachedFileData()
public SoftwareServerAuxiliary.CachedFileData(String filename)
filename
- the name of the filepublic SoftwareServerAuxiliary.CachedFileData(String filename, String format)
filename
- the name of the fileformat
- the new format of this datapublic SoftwareServerAuxiliary.CachedFileData(SoftwareServerAuxiliary.FileData file_data, String format)
file_data
- the data to initialize withformat
- the format of this datapublic SoftwareServerAuxiliary.CachedFileData(SoftwareServerAuxiliary.FileData file_data, int session, String cache_path)
file_data
- the file data to cachesession
- the session_id responsible for this filecache_path
- the path to the cached filepublic SoftwareServerAuxiliary.CachedFileData(SoftwareServerAuxiliary.CachedFileData cached_file_data, String format)
cached_file_data
- the data to copyformat
- the new format of this datapublic String toString()
toString
in class SoftwareServerAuxiliary.Data
public int compareTo(Object object)
compareTo
in interface Comparable
compareTo
in class SoftwareServerAuxiliary.Data
object
- the object to compare topublic String getName()
public String getFormat()
public String getCacheName(int session)
session
- the session idpublic String getCacheFilename(int session)
session
- the session idpublic boolean exists(int session, String cache_path)
session
- the session idcache_path
- the path to the cache directorypublic SoftwareServerAuxiliary.FileData uncache(int session, String cache_path)
session
- the session idcache_path
- the path to the cache directoryCopyright © 2014. All rights reserved.