Class FileContentReference
Object
com.liferay.portal.kernel.repository.model.FileContentReference
- Author:
- Adolfo Pérez
-
Method Summary
Modifier and TypeMethodDescriptionstatic FileContentReferencefromBytes(long groupId, long fileEntryId, String sourceFileName, String extension, String mimeType, byte[] bytes) static FileContentReferencestatic FileContentReferencefromFile(long groupId, long fileEntryId, String sourceFileName, String extension, String mimeType, File file) static FileContentReferencestatic FileContentReferencefromInputStream(long groupId, long fileEntryId, String sourceFileName, String extension, String mimeType, InputStream inputStream, long size) static FileContentReferencefromInputStream(long groupId, String sourceFileName, String extension, String mimeType, InputStream inputStream, long size) longlonglonggetSize()
-
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
-