public class FileItem extends Object
| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
data
Object representing a file : information + binary
|
protected FileInfo |
fileInfo |
| Constructor and Description |
|---|
FileItem(FileInfo fileInfo,
InputStream inputStream) |
FileItem(Long id,
String name,
String mimetype,
String nameSpace,
long size,
Date updatedDate,
String updater,
boolean deleted,
InputStream inputStream) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getAsByte() |
InputStream |
getAsStream() |
FileInfo |
getFileInfo() |
void |
setChecksum(InputStream inputStream) |
void |
setFileInfo(FileInfo fileInfo) |
void |
setInputStream(InputStream inputStream) |
protected FileInfo fileInfo
protected byte[] data
public FileItem(FileInfo fileInfo, InputStream inputStream) throws Exception
Exceptionpublic FileInfo getFileInfo()
public InputStream getAsStream() throws IOException
IOExceptionpublic byte[] getAsByte()
public void setInputStream(InputStream inputStream) throws Exception
Exceptionpublic void setFileInfo(FileInfo fileInfo)
public void setChecksum(InputStream inputStream) throws Exception
ExceptionCopyright © 2003–2019 eXo Platform SAS. All rights reserved.