|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectjavax.mail.internet.ContentDisposition
public class ContentDisposition
This class represents a MIME ContentDisposition value. It provides methods to parse a ContentDisposition string into individual components and to generate a MIME style ContentDisposition string.
| 构造方法摘要 | |
|---|---|
ContentDisposition()
No-arg Constructor. |
|
ContentDisposition(String s)
Constructor that takes a ContentDisposition string. |
|
ContentDisposition(String disposition,
ParameterList list)
Constructor. |
|
| 方法摘要 | |
|---|---|
String |
getDisposition()
Return the disposition value. |
String |
getParameter(String name)
Return the specified parameter value. |
ParameterList |
getParameterList()
Return a ParameterList object that holds all the available parameters. |
void |
setDisposition(String disposition)
Set the disposition. |
void |
setParameter(String name,
String value)
Set the specified parameter. |
void |
setParameterList(ParameterList list)
Set a new ParameterList. |
String |
toString()
Retrieve a RFC2045 style string representation of this ContentDisposition. |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 构造方法详细信息 |
|---|
public ContentDisposition()
public ContentDisposition(String disposition,
ParameterList list)
disposition - dispositionlist - ParameterList
public ContentDisposition(String s)
throws ParseException
s - the ContentDisposition string.
ParseException - if the parse fails.| 方法详细信息 |
|---|
public String getDisposition()
public String getParameter(String name)
null
if this parameter is absent.
public ParameterList getParameterList()
public void setDisposition(String disposition)
disposition - the disposition
public void setParameter(String name,
String value)
name - parameter namevalue - parameter valuepublic void setParameterList(ParameterList list)
list - ParameterListpublic String toString()
null if
the conversion failed.
Object 中的 toString
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||