|
7.0 Action Request System Java API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.remedy.arsys.api.AttachmentInfo
The AttachmentInfo
class is used to get/set the information
about attachment fields. This class represents the attachment, or binary large object (blob
), stored
for the attachment field with the indicated ID on the specified server.
The data is returned/set either in a buffer or a file,
depending on the type of location.
Field Summary | |
static int |
AR_LOC_BUFFER
AR_LOC_BUFFER specifies that the contents
of the blob should be returned/set in a data buffer. |
static int |
AR_LOC_FILENAME
AR_LOC_FILENAME specifies that the contents
of the blob should be returned/set in a file. |
Constructor Summary | |
AttachmentInfo(java.lang.String name,
long nOrigSize,
long nCompSize,
byte[] loc)
|
|
AttachmentInfo(java.lang.String name,
long nOrigSize,
long nCompSize,
java.lang.String loc)
|
Method Summary | |
java.lang.Object |
clone()
Clone implementation that returns an Object with data cloned from self. |
long |
getCompressedSize()
Returns compressed size of attachment. |
int |
getLocationType()
Returns the location type that indicates whether the contents are passed as a file ( AR_LOC_FILENAME )
or as a buffer (AR_LOC_BUFFER ). |
java.lang.String |
getName()
Returns name of the attachment. |
long |
getOriginalSize()
Returns the original size of attachment. |
java.lang.Object |
getValue()
Returns value of attachment. |
java.lang.String |
getValueFileName()
|
void |
setCompressedSize(long nCompSize)
Sets the compressed size of attachment. |
void |
setName(java.lang.String name)
Sets the name of the attachment. |
void |
setOriginalSize(long nOrigSize)
Sets the original size of attachment. |
void |
setValue(byte[] bytes)
Sets the buffer ( byte[] ) in which the content is returned. |
void |
setValue(java.lang.String strFileName)
Sets the name of the file in which the attachment is written. |
java.lang.String |
toString()
Returns a string description of the object. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int AR_LOC_FILENAME
AR_LOC_FILENAME
specifies that the contents
of the blob should be returned/set in a file.
public static final int AR_LOC_BUFFER
AR_LOC_BUFFER
specifies that the contents
of the blob should be returned/set in a data buffer.
Constructor Detail |
public AttachmentInfo(java.lang.String name, long nOrigSize, long nCompSize, byte[] loc)
public AttachmentInfo(java.lang.String name, long nOrigSize, long nCompSize, java.lang.String loc)
Method Detail |
public java.lang.String getName()
public void setName(java.lang.String name)
public long getOriginalSize()
public void setOriginalSize(long nOrigSize)
public long getCompressedSize()
public void setCompressedSize(long nCompSize)
public int getLocationType()
AR_LOC_FILENAME
)
or as a buffer (AR_LOC_BUFFER
).
public java.lang.Object getValue()
public void setValue(byte[] bytes)
byte[]
) in which the content is returned.
public void setValue(java.lang.String strFileName)
public java.lang.String getValueFileName()
public java.lang.String toString()
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException
|
7.0 Action Request System Java API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |