|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ExchangeAttachment
Represents an attachment attached to an Exchange item. An attachment can be a file (ExchangeFileAttachment) or an Exchange item (ExchangeItemAttachment).
Method Summary | |
---|---|
void |
delete()
Deletes this attachment. |
AttachmentInfo |
getAttachmentInfo()
Returns additional information on the attachment. |
java.lang.String |
getContentId()
Returns an application-specific identifier for the contents of an attachment. |
java.lang.String |
getContentLocation()
Returns the URI corresponding to the location of the content of the attachment. |
java.lang.String |
getContentType()
Returns the MIME type of the attachment content. |
java.lang.String |
getName()
Returns the displayed name of the attachment. |
java.lang.String |
getParentItemId()
Returns the ID of the parent item that this attachment is attached to. |
void |
writeTo(java.io.File file)
Writes the content of the attachment to the specified file. |
void |
writeTo(java.io.OutputStream stream)
Writes the content of the attachment to the specified output stream. |
Method Detail |
---|
java.lang.String getParentItemId() throws ExchangeServiceException
ExchangeServiceException
- if any errors occur during the communication with Exchange.AttachmentInfo getAttachmentInfo() throws ExchangeServiceException
ExchangeServiceException
- if any errors occur during the communication with Exchange.java.lang.String getName() throws ExchangeServiceException
ExchangeServiceException
java.lang.String getContentType() throws ExchangeServiceException
ExchangeServiceException
java.lang.String getContentId() throws ExchangeServiceException
ExchangeServiceException
java.lang.String getContentLocation() throws ExchangeServiceException
ExchangeServiceException
void delete() throws ExchangeServiceException
ExchangeServiceException
- if any errors occur during the communication with Exchange.void writeTo(java.io.OutputStream stream) throws ExchangeServiceException, java.io.IOException
stream
- the stream to write into.
ExchangeServiceException
- if any errors occur during the communication with Exchange.
java.io.IOException
- if errors occur when writing to the specified stream.void writeTo(java.io.File file) throws ExchangeServiceException, java.io.IOException
file
- the file to write into.
ExchangeServiceException
- if any errors occur during the communication with Exchange.
java.io.IOException
- if errors occur when writing to the specified file.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |