|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.arcgis.geodatabase.Attachment
public class Attachment
.
| Constructor Summary | |
|---|---|
Attachment()
Constructs a Attachment using ArcGIS Engine. |
|
Attachment(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. Attachment theAttachment = (Attachment) obj; |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
Compare this object with another |
int |
getAttachmentID()
ID that uniquely identifies the attachment. |
static String |
getClsid()
getClsid. |
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. |
String |
getParentGlobalID()
Parent global ID to which the attachment belongs. |
int |
getParentID()
Parent ID to which the attachment belongs. |
int |
getSize()
Size of the attachment data in bytes. |
int |
hashCode()
the hashcode for this object |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef |
|---|
getJintegraDispatch, release |
| Constructor Detail |
|---|
public Attachment()
throws IOException,
UnknownHostException
IOException - if there are interop problems
UnknownHostException - if there are interop problems
public Attachment(Object obj)
throws IOException
Attachment theAttachment = (Attachment) obj;
obj to Attachment.
obj - an object returned from ArcGIS Engine or Server
IOException - if there are interop problems| Method Detail |
|---|
public static String getClsid()
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
public String getParentGlobalID()
throws IOException,
AutomationException
getParentGlobalID in interface IAttachment2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getAttachmentID()
throws IOException,
AutomationException
getAttachmentID in interface IAttachmentIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getGlobalID()
throws IOException,
AutomationException
getGlobalID in interface IAttachmentIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getParentID()
throws IOException,
AutomationException
getParentID in interface IAttachmentIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public 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.
setName in interface IAttachmentname - The name (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public 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.
getName in interface IAttachmentIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public 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
setContentType in interface IAttachmentcontentType - The contentType (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public 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
getContentType in interface IAttachmentIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getSize()
throws IOException,
AutomationException
getSize in interface IAttachmentIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setDataByRef(IMemoryBlobStream data)
throws IOException,
AutomationException
setDataByRef in interface IAttachmentdata - A reference to a com.esri.arcgis.system.IMemoryBlobStream (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IMemoryBlobStream getData()
throws IOException,
AutomationException
getData in interface IAttachmentIOException - 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 | ||||||||