|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IAttachment
Provides access to members of an attachment.
Method Summary | |
---|---|
int |
getAttachmentID()
ID that uniquely identifies the attachment. |
String |
getContentType()
Content type that describes the attachment data. |
IMemoryBlobStream |
getData()
Attachment data. |
String |
getGlobalID()
Global ID that uniquely identifies the attachment. |
String |
getName()
Name of the attachment. |
int |
getParentID()
Parent ID to which the attachment belongs. |
int |
getSize()
Size of the attachment data in bytes. |
void |
setContentType(String contentType)
Content type that describes the attachment data. |
void |
setDataByRef(IMemoryBlobStream data)
Attachment data. |
void |
setName(String name)
Name of the attachment. |
Method Detail |
---|
int getAttachmentID() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getGlobalID() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getParentID() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setName(String name) throws IOException, AutomationException
The name property should be identical to the name of the attached file. This means no special characters or spaces should be used.
name
- The name (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getName() throws IOException, AutomationException
The name property should be identical to the name of the attached file. This means no special characters or spaces should be used.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setContentType(String contentType) throws IOException, AutomationException
The ContentType property must be populated with the full MIME type name as would be used in an HTTP request for the items being attached. The MIME type string should consist of both the type and the subtype and follow the pattern (without the square brackets) of [MIME type name]/[MIME subtype name]. An attached jpeg image would have a MIME type of image, and a MIME subtype of jpeg, yielding a ContentType string of image/jpeg.
Below are a few common examples:
Full MIME Type Name | Common File Extension | Purpose |
---|---|---|
text/html | .html | Web Page |
image/png | .png | PNG-format image |
image/jpeg | .jpeg | JPEG-format image |
audio/mpeg | .mp3 | MPEG Audio File |
The official list can be found at http://www.iana.org/assignments/media-types/index.html
contentType
- The contentType (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getContentType() throws IOException, AutomationException
The ContentType property must be populated with the full MIME type name as would be used in an HTTP request for the items being attached. The MIME type string should consist of both the type and the subtype and follow the pattern (without the square brackets) of [MIME type name]/[MIME subtype name]. An attached jpeg image would have a MIME type of image, and a MIME subtype of jpeg, yielding a ContentType string of image/jpeg.
Below are a few common examples:
Full MIME Type Name | Common File Extension | Purpose |
---|---|---|
text/html | .html | Web Page |
image/png | .png | PNG-format image |
image/jpeg | .jpeg | JPEG-format image |
audio/mpeg | .mp3 | MPEG Audio File |
The official list can be found at http://www.iana.org/assignments/media-types/index.html
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getSize() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setDataByRef(IMemoryBlobStream data) throws IOException, AutomationException
data
- A reference to a com.esri.arcgis.system.IMemoryBlobStream (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IMemoryBlobStream getData() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |