public class DataCacheFileObject extends DataCacheObject
| Modifier and Type | Field and Description |
|---|---|
static int |
COPY_FILE_TO_CACHE |
static int |
EXTERNAL |
static int |
INTERNAL |
protected int |
mFileLoc |
static int |
UNKNOWN |
CACHE_BUSY, CACHE_COMPLETE, CACHE_EMPTY, CACHE_ERROR_attributes, _lsid, _name, _semanticTypes| Constructor and Description |
|---|
DataCacheFileObject()
A DataCacheFileObject object that can point to an itnernal file or
external file object
|
| Modifier and Type | Method and Description |
|---|---|
int |
doWork()
Abstract method for actually getting the data while in the thread
|
int |
getFileLocation() |
java.lang.String |
getType() |
void |
initializeWithFileName(java.lang.String aPhysicalName,
java.lang.String aLogicalName,
java.lang.String aType,
int aFileLocation)
This is one of the hardest working methods in the class.
|
void |
setFileLocation(int aFileLoc)
Set the status of the file item
|
addListener, clear, getAbsoluteFileName, getBaseFileName, getCreatedDate, getDataInputStream, getFile, getObject, getResourceName, getStatus, isBusy, isEmpty, isError, isReady, notifyListeners, refresh, removeAllListeners, removeListener, reset, run, setAbsoluteFileName, setBaseFileName, setCreatedDate, setResourceName, start, stop, toStringaddAttribute, getAttribute, getAttributeNames, getLSID, getName, getSemanticTypes, objectAdded, objectPurged, objectRemoved, removeAttribute, setLSID, setName, setSemanticTypespublic static final int UNKNOWN
public static final int INTERNAL
public static final int EXTERNAL
public static final int COPY_FILE_TO_CACHE
protected int mFileLoc
public DataCacheFileObject()
public int getFileLocation()
public java.lang.String getType()
public void setFileLocation(int aFileLoc)
aFileLoc - the location typepublic void initializeWithFileName(java.lang.String aPhysicalName, java.lang.String aLogicalName, java.lang.String aType, int aFileLocation)
aPhysicalFileName - the "physical" name of a file (this name will not be stored if
aFileLocation is COPY_FILE_TO_CACHE)aLogicalName - the "logical" name of a file unrelated to the physical nameaType - a description of the file's type (optional and can be null)aFileLocation - the file location type (see DataCacheFileObject for values)public int doWork()
DataCacheObjectdoWork in class DataCacheObject