Package org.compiere.model
Class AttachmentFileLazyDataSource
java.lang.Object
org.compiere.model.AttachmentFileLazyDataSource
- All Implemented Interfaces:
IAttachmentLazyDataSource
IDEMPIERE-4889
- Author:
- Carlos Ruiz - globalqss
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor for lazy load - keep the file information -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.compiere.model.IAttachmentLazyDataSource
cleanUp
-
Constructor Details
-
AttachmentFileLazyDataSource
Constructor for lazy load - keep the file information- Parameters:
file-
-
-
Method Details
-
getData
public byte[] getData()Return a byte array containing the data from the File- Specified by:
getDatain interfaceIAttachmentLazyDataSource- Returns:
-
getInputStream
Description copied from interface:IAttachmentLazyDataSourceGet input stream for attachment entry- Specified by:
getInputStreamin interfaceIAttachmentLazyDataSource- Returns:
- input stream
-
getFile
Description copied from interface:IAttachmentLazyDataSourceGet file attachment- Specified by:
getFilein interfaceIAttachmentLazyDataSource- Returns:
- file attachment or null
-
getSize
public long getSize()Description copied from interface:IAttachmentLazyDataSourceGet size of attachment entry- Specified by:
getSizein interfaceIAttachmentLazyDataSource- Returns:
- size
-