public class ContentDataPart
extends org.apache.commons.httpclient.methods.multipart.PartBase
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
FILE_NAME
Attachment's file name
|
BOUNDARY, BOUNDARY_BYTES, CHARSET, CHARSET_BYTES, CONTENT_DISPOSITION, CONTENT_DISPOSITION_BYTES, CONTENT_TRANSFER_ENCODING, CONTENT_TRANSFER_ENCODING_BYTES, CONTENT_TYPE, CONTENT_TYPE_BYTES, CRLF, CRLF_BYTES, EXTRA, EXTRA_BYTES, QUOTE, QUOTE_BYTES| Constructor and Description |
|---|
ContentDataPart(ContentService contentService,
java.lang.String partName,
org.alfresco.service.cmr.repository.ContentData data)
ContentDataPart
|
| Modifier and Type | Method and Description |
|---|---|
protected long |
lengthOfData() |
protected void |
sendData(java.io.OutputStream out) |
protected void |
sendDispositionHeader(java.io.OutputStream out)
Write the disposition header to the output stream
|
getCharSet, getContentType, getName, getTransferEncoding, setCharSet, setContentType, setName, setTransferEncodingprotected static final java.lang.String FILE_NAME
public ContentDataPart(ContentService contentService, java.lang.String partName, org.alfresco.service.cmr.repository.ContentData data)
contentService - partName - data - protected void sendDispositionHeader(java.io.OutputStream out)
throws java.io.IOException
sendDispositionHeader in class org.apache.commons.httpclient.methods.multipart.Partout - The output streamjava.io.IOException - If an IO problem occursPart#sendDispositionHeader(OutputStream)protected long lengthOfData()
throws java.io.IOException
lengthOfData in class org.apache.commons.httpclient.methods.multipart.Partjava.io.IOExceptionprotected void sendData(java.io.OutputStream out)
throws java.io.IOException
sendData in class org.apache.commons.httpclient.methods.multipart.Partjava.io.IOExceptionCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.