Package de.uplanet.lucy.server.util
Klasse VHFileDescriptor
java.lang.Object
de.uplanet.lucy.server.util.VHFileDescriptor
- Alle implementierten Schnittstellen:
IVHFileDescriptor
Holds the necessary information for the
FileValueHolder.-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungVHFileDescriptor(File p_file, String p_strFileName, String p_strContentType, Date p_lastModified, boolean p_bStreamingMode) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibunggetFile()Returns the file object.static final VHFileDescriptorgetInstance(File p_file) static final VHFileDescriptorgetInstance(String p_strPath) getPath()boolean
-
Konstruktordetails
-
VHFileDescriptor
public VHFileDescriptor(File p_file, String p_strFileName, String p_strContentType, Date p_lastModified, boolean p_bStreamingMode) - Parameter:
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 betruefor streaming, should normally befalse, otherwise server must stream the file up to the web).
-
-
Methodendetails
-
getFileName
- Angegeben von:
getFileNamein SchnittstelleIVHFileDescriptor- Gibt zurück:
- The name of the file.
-
getPath
- Angegeben von:
getPathin SchnittstelleIVHFileDescriptor- Gibt zurück:
- The path to the file.
-
getContentType
- Angegeben von:
getContentTypein SchnittstelleIVHFileDescriptor- Gibt zurück:
- The MIME content type.
-
isStreamingMode
public boolean isStreamingMode()- Angegeben von:
isStreamingModein SchnittstelleIVHFileDescriptor- Gibt zurück:
- Returns
trueif download should download by stream otherwisefalse
-
getLastModified
- Angegeben von:
getLastModifiedin SchnittstelleIVHFileDescriptor- Gibt zurück:
- The last modified date of the file (could be
null).
-
getInstance
-
getInstance
-
getFile
Beschreibung aus Schnittstelle kopiert:IVHFileDescriptorReturns the file object.- Angegeben von:
getFilein SchnittstelleIVHFileDescriptor- Gibt zurück:
- Returns the file object. Not
null, is not guaranteed that the file exists.
-