public class AbstractPart extends NativeObject
Constructor and Description |
---|
AbstractPart() |
Modifier and Type | Method and Description |
---|---|
java.util.AbstractList<java.lang.String> |
allContentTypeParametersNames()
Returns the list of all parameters names of Content-Type.
|
java.lang.String |
charset()
Returns the charset encoding of the attachment.
|
java.lang.String |
contentDescription()
Returns the Content-Description of the attachment.
|
java.lang.String |
contentID()
Returns the Content-ID of the attachment.
|
java.lang.String |
contentLocation()
Returns the Content-Location of the attachment.
|
java.lang.String |
contentTypeParameterValueForName(java.lang.String name)
Returns a Content-Type parameter for a given name.
|
java.lang.String |
filename()
Returns filename of the attachment.
|
boolean |
isInlineAttachment()
Returns the hint about whether the attachment should be shown inline.
|
AbstractPart |
partForContentID(java.lang.String contentID)
Returns the MIME part with the given Content-ID.
|
AbstractPart |
partForUniqueID(java.lang.String uniqueID)
Returns the MIME part with the given uniqueID.
|
int |
partType()
Returns the type of the part.
|
void |
setCharset(java.lang.String charset)
Sets the charset encoding of the attachment.
|
void |
setContentDescription(java.lang.String contentDescription)
Sets the Content-Description of the attachment.
|
void |
setContentID(java.lang.String contentID)
Sets the Content-ID of the attachment.
|
void |
setContentLocation(java.lang.String contentLocation)
Sets the Content-Location of the attachment.
|
void |
setContentTypeParameter(java.lang.String name,
java.lang.String value)
Sets a Content-Type parameter.
|
void |
setFilename(java.lang.String filename)
Sets the filename of the attachment.
|
void |
setInlineAttachment(boolean inlineAttachment)
Sets the hint about whether the attachment should be shown inline.
|
void |
setPartType(int partType)
Sets the type of the part.
|
void |
setUniqueID(java.lang.String uniqueID)
Sets the unique identifier of the attachment.
|
java.lang.String |
uniqueID()
Returns the uniqueID of the attachment.
|
clone, finalize, initWithNative, readObject, toString, writeObject
public int partType()
PartType
public void setPartType(int partType)
PartType
public java.lang.String filename()
public void setFilename(java.lang.String filename)
public java.lang.String charset()
public void setCharset(java.lang.String charset)
public java.lang.String uniqueID()
public void setUniqueID(java.lang.String uniqueID)
public java.lang.String contentID()
public void setContentID(java.lang.String contentID)
public java.lang.String contentLocation()
public void setContentLocation(java.lang.String contentLocation)
public java.lang.String contentDescription()
public void setContentDescription(java.lang.String contentDescription)
public boolean isInlineAttachment()
public void setInlineAttachment(boolean inlineAttachment)
public AbstractPart partForContentID(java.lang.String contentID)
contentID()
public AbstractPart partForUniqueID(java.lang.String uniqueID)
uniqueID()
public void setContentTypeParameter(java.lang.String name, java.lang.String value)
public java.lang.String contentTypeParameterValueForName(java.lang.String name)
public java.util.AbstractList<java.lang.String> allContentTypeParametersNames()