public interface FileItem extends ContentItem
Item to represent an item containing binary content.ContentItem.Action| Modifier and Type | Field and Description |
|---|---|
static long |
MAX_CONTENT_SIZE |
| Modifier and Type | Method and Description |
|---|---|
void |
clearContent() |
byte[] |
getContent()
Get content data as byte[]
|
String |
getContentEncoding() |
InputStream |
getContentInputStream() |
String |
getContentLanguage() |
Long |
getContentLength() |
String |
getContentType() |
void |
setContent(byte[] content)
Sets content data using byte[]
|
void |
setContent(InputStream is)
Set ContentItem's data using InputStream.
|
void |
setContentEncoding(String contentEncoding) |
void |
setContentLanguage(String contentLanguage) |
void |
setContentLength(Long contentLength) |
void |
setContentType(String contentType) |
getLastModification, getLastModifiedBy, getNeedsReply, getSent, getTriageStatus, setLastModification, setLastModifiedBy, setNeedsReply, setSent, setTriageStatusaddAttribute, addStamp, addTicket, copy, getAttribute, getAttribute, getAttributes, getAttributes, getAttributeValue, getAttributeValue, getClientCreationDate, getClientModifiedDate, getDisplayName, getIsActive, getName, getOwner, getParent, getParentDetails, getParents, getStamp, getStamp, getStampMap, getStamps, getTickets, getTombstones, getUid, removeAttribute, removeAttribute, removeAttributes, removeStamp, removeTicket, setAttribute, setAttribute, setClientCreationDate, setClientModifiedDate, setDisplayName, setIsActive, setName, setOwner, setUidgetCreationDate, getEntityTag, getFactory, getModifiedDate, updateTimestampstatic final long MAX_CONTENT_SIZE
byte[] getContent()
void setContent(byte[] content)
content - void clearContent()
void setContent(InputStream is) throws IOException
is - dataIOExceptionInputStream getContentInputStream()
String getContentEncoding()
void setContentEncoding(String contentEncoding)
String getContentLanguage()
void setContentLanguage(String contentLanguage)
Long getContentLength()
void setContentLength(Long contentLength)
String getContentType()
void setContentType(String contentType)
Copyright © 2012–2018 1&1. All rights reserved.