Class StreamFile
java.lang.Object
io.vertigo.datastore.impl.filestore.model.StreamFile
- All Implemented Interfaces:
io.vertigo.core.lang.DataStream,VFile,Serializable
VFile implementation from a provided InputStreamBuilder.
- Author:
- npiedeloup
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionStreamFile(String fileName, String mimeType, Instant lastModified, long length, io.vertigo.core.lang.DataStream dataStream) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionfinal Stringfinal Instantfinal Longfinal Stringstatic StreamFilestatic StreamFileof(String fileName, String typeMime, Instant lastModified, long length, io.vertigo.core.lang.DataStream dataStream) static StreamFileMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.vertigo.core.lang.DataStream
getBytes
-
Constructor Details
-
Method Details
-
createInputStream
- Throws:
IOException
-
of
public static StreamFile of(String fileName, Instant lastModified, long length, io.vertigo.core.lang.DataStream dataStream) -
of
-
of
public static StreamFile of(String fileName, String typeMime, Instant lastModified, long length, io.vertigo.core.lang.DataStream dataStream) -
getFileName
- Specified by:
getFileNamein interfaceVFile- Returns:
- Nom d'origine du fichier
-
getMimeType
- Specified by:
getMimeTypein interfaceVFile- Returns:
- Type mime du fichier
-
getLength
-
getLastModified
- Specified by:
getLastModifiedin interfaceVFile- Returns:
- Date de modification du fichier en milli-secondes.
-