Interface VFile
-
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
FSFile
,StreamFile
public interface VFile extends Serializable
Représentation d'un Fichier logique. Ce FileInfo fournit : - le contenu du fichier - son nom d'origine - son type mime - sa taille - sa dernière date de modification Ce fichier peut être un fichier physique, un pointeur vers un fichier stocké en base ou sur internet peu importe.- Author:
- npiedeloup
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InputStream
createInputStream()
Create a inputStream : It must be closed by caller !!String
getFileName()
Instant
getLastModified()
Long
getLength()
String
getMimeType()
-
-
-
Method Detail
-
getFileName
String getFileName()
- Returns:
- Nom d'origine du fichier
-
getLength
Long getLength()
- Returns:
- Taille du fichier
-
getLastModified
Instant getLastModified()
- Returns:
- Date de modification du fichier en milli-secondes.
-
getMimeType
String getMimeType()
- Returns:
- Type mime du fichier
-
createInputStream
InputStream createInputStream() throws IOException
Create a inputStream : It must be closed by caller !!- Returns:
- Stream représentant le document physique.
- Throws:
IOException
- Erreur d'entrée/sortie
-
-