Class FileContentReference
Object
com.liferay.portal.kernel.repository.model.FileContentReference
- Author:
- Adolfo Pérez
-
Method Summary
Modifier and TypeMethodDescriptionstatic FileContentReference
fromBytes
(long groupId, long fileEntryId, String sourceFileName, String extension, String mimeType, byte[] bytes) static FileContentReference
static FileContentReference
fromFile
(long groupId, long fileEntryId, String sourceFileName, String extension, String mimeType, File file) static FileContentReference
static FileContentReference
fromInputStream
(long groupId, long fileEntryId, String sourceFileName, String extension, String mimeType, InputStream inputStream, long size) static FileContentReference
fromInputStream
(long groupId, String sourceFileName, String extension, String mimeType, InputStream inputStream, long size) long
long
long
getSize()
-
Method Details
-
fromBytes
public static FileContentReference fromBytes(long groupId, long fileEntryId, String sourceFileName, String extension, String mimeType, byte[] bytes) -
fromBytes
public static FileContentReference fromBytes(long groupId, String sourceFileName, String extension, String mimeType, byte[] bytes) -
fromFile
public static FileContentReference fromFile(long groupId, long fileEntryId, String sourceFileName, String extension, String mimeType, File file) -
fromFile
public static FileContentReference fromFile(long groupId, String sourceFileName, String extension, String mimeType, File file) -
fromInputStream
public static FileContentReference fromInputStream(long groupId, long fileEntryId, String sourceFileName, String extension, String mimeType, InputStream inputStream, long size) -
fromInputStream
public static FileContentReference fromInputStream(long groupId, String sourceFileName, String extension, String mimeType, InputStream inputStream, long size) -
getExtension
-
getFileEntryId
public long getFileEntryId() -
getGroupId
public long getGroupId() -
getMimeType
-
getSize
public long getSize() -
getSourceFileName
-