cz.hdf.cdnavigator.gui.data
Class CacheFileRecord

java.lang.Object
  extended by cz.hdf.cdnavigator.gui.data.CacheFileRecord
All Implemented Interfaces:
FileRecord

public class CacheFileRecord
extends java.lang.Object
implements FileRecord

Structure to store CD ID and file to cache.

Author:
hunter

Field Summary
private  CDData cd
          CD ID with this file
private  java.lang.String file
          file without cache dir, only relative path on CD
 
Constructor Summary
CacheFileRecord(CDData _cd, java.lang.String _file)
          Initialize file record.
 
Method Summary
 CDData getCD()
          Get CD of file record.
 java.lang.String getFileName()
          Get relative file name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cd

private CDData cd
CD ID with this file


file

private java.lang.String file
file without cache dir, only relative path on CD

Constructor Detail

CacheFileRecord

public CacheFileRecord(CDData _cd,
                       java.lang.String _file)
Initialize file record.

Parameters:
_cdID - CD ID
_file - relative file name
Method Detail

getCD

public CDData getCD()
Description copied from interface: FileRecord
Get CD of file record.

Specified by:
getCD in interface FileRecord
Returns:
get CD data
See Also:
FileRecord.getCD()

getFileName

public java.lang.String getFileName()
Description copied from interface: FileRecord
Get relative file name. File path is path on CD.

Specified by:
getFileName in interface FileRecord
Returns:
relative file path
See Also:
FileRecord.getFileName()


CDnavigator JavaDoc, HDF company www.hdf.cz