public final class VHFileDescriptor extends Object implements de.uplanet.lucy.server.util.IVHFileDescriptor
FileValueHolder
.Constructor and Description |
---|
VHFileDescriptor(File p_file,
String p_strFileName,
String p_strContentType,
Date p_lastModified,
boolean p_bStreamingMode) |
Modifier and Type | Method and Description |
---|---|
String |
getContentType() |
File |
getFile() |
String |
getFileName() |
static VHFileDescriptor |
getInstance(File p_file) |
static VHFileDescriptor |
getInstance(String p_strPath) |
Date |
getLastModified() |
String |
getPath() |
boolean |
isStreamingMode() |
public VHFileDescriptor(File p_file, String p_strFileName, String p_strContentType, Date p_lastModified, boolean p_bStreamingMode)
p_file
- The physical filep_strFileName
- The file namep_strContentType
- The content type of the filep_lastModified
- The last modified date of the filep_bStreamingMode
- Should be true
for streaming, should normally be false
, otherwise server must stream the file up to the web).public String getFileName()
getFileName
in interface de.uplanet.lucy.server.util.IVHFileDescriptor
public String getPath()
getPath
in interface de.uplanet.lucy.server.util.IVHFileDescriptor
public String getContentType()
getContentType
in interface de.uplanet.lucy.server.util.IVHFileDescriptor
public boolean isStreamingMode()
isStreamingMode
in interface de.uplanet.lucy.server.util.IVHFileDescriptor
public Date getLastModified()
getLastModified
in interface de.uplanet.lucy.server.util.IVHFileDescriptor
public static final VHFileDescriptor getInstance(String p_strPath)
public static final VHFileDescriptor getInstance(File p_file)
public File getFile()
getFile
in interface de.uplanet.lucy.server.util.IVHFileDescriptor