public static class SoftwareServerAuxiliary.FileData extends SoftwareServerAuxiliary.Data implements Serializable, Comparable
Modifier and Type | Field and Description |
---|---|
static long |
serialVersionUID |
Constructor and Description |
---|
SoftwareServerAuxiliary.FileData() |
SoftwareServerAuxiliary.FileData(String absolute_name,
boolean LOAD)
Class constructor.
|
Modifier and Type | Method and Description |
---|---|
SoftwareServerAuxiliary.CachedFileData |
cache(int session,
String path)
Cache the file data.
|
int |
compareTo(Object object)
Compare this object to another object.
|
String |
getAbsoluteName()
Get the files absolute name.
|
byte[] |
getData()
Get the files data.
|
String |
getFormat()
Get the files format.
|
String |
getName()
Get the files name.
|
boolean |
isEmpty()
Determine if this instance is empty or not.
|
void |
load(String path)
Load the file data into this structure.
|
static SoftwareServerAuxiliary.FileData |
newFormat(String format)
Create a new FileData instance representing this format.
|
void |
save(String path,
String filename)
Save the file data to a file.
|
String |
toString()
Get a string representation of this instance.
|
void |
unload()
Clear stored data.
|
public static final long serialVersionUID
public SoftwareServerAuxiliary.FileData()
public SoftwareServerAuxiliary.FileData(String absolute_name, boolean LOAD)
absolute_name
- the absolute name of the fileLOAD
- true if the data should be loaded into memorypublic static SoftwareServerAuxiliary.FileData newFormat(String format)
format
- the format extensionpublic 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 boolean isEmpty()
public String getAbsoluteName()
public String getName()
public String getFormat()
public byte[] getData()
public void load(String path)
path
- the path to load frompublic void unload()
public void save(String path, String filename)
path
- the path to save tofilename
- the name of the file (can be null)public SoftwareServerAuxiliary.CachedFileData cache(int session, String path)
session
- the session_id responsible for this filepath
- the path to cache toCopyright © 2014. All rights reserved.