本文整理了Java中javax.mail.internet.MimeBodyPart.getDescription()
方法的一些代码示例,展示了MimeBodyPart.getDescription()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。MimeBodyPart.getDescription()
方法的具体详情如下:
包路径:javax.mail.internet.MimeBodyPart
类名称:MimeBodyPart
方法名:getDescription
[英]Returns the "Content-Description" header field of this body part. This typically associates some descriptive information with this part. Returns null if this field is unavailable or its value is absent.
If the Content-Description field is encoded as per RFC 2047, it is decoded and converted into Unicode. If the decoding or conversion fails, the raw data is returned as is.
This implementation uses getHeader(name)
to obtain the requisite header field.
[中]返回此正文部分的“内容说明”标题字段。这通常会将一些描述性信息与此零件相关联。如果此字段不可用或其值不存在,则返回null。
如果内容描述字段按照RFC 2047编码,则将其解码并转换为Unicode。如果解码或转换失败,原始数据将按原样返回。
此实现使用getHeader(name)
获取必需的头字段。
代码示例来源:origin: camunda/camunda-bpm-platform
/**
* Returns the "Content-Description" header field of this Message.
* This typically associates some descriptive information with
* this part. Returns null if this field is unavailable or its
* value is absent. <p>
*
* If the Content-Description field is encoded as per RFC 2047,
* it is decoded and converted into Unicode. If the decoding or
* conversion fails, the raw data is returned as-is <p>
*
* This implementation uses the <code>getHeader</code> method
* to obtain the requisite header field.
*
* @return content-description
* @exception MessagingException for failures
*/
public String getDescription() throws MessagingException {
return MimeBodyPart.getDescription(this);
}
代码示例来源:origin: camunda/camunda-bpm-platform
/**
* Returns the "Content-Description" header field of this body part.
* This typically associates some descriptive information with
* this part. Returns null if this field is unavailable or its
* value is absent. <p>
*
* If the Content-Description field is encoded as per RFC 2047,
* it is decoded and converted into Unicode. If the decoding or
* conversion fails, the raw data is returned as is. <p>
*
* This implementation uses <code>getHeader(name)</code>
* to obtain the requisite header field.
*
* @return content description
*/
public String getDescription() throws MessagingException {
return getDescription(this);
}
代码示例来源:origin: com.sun.mail/javax.mail
/**
* Returns the "Content-Description" header field of this body part.
* This typically associates some descriptive information with
* this part. Returns null if this field is unavailable or its
* value is absent. <p>
*
* If the Content-Description field is encoded as per RFC 2047,
* it is decoded and converted into Unicode. If the decoding or
* conversion fails, the raw data is returned as is. <p>
*
* This implementation uses <code>getHeader(name)</code>
* to obtain the requisite header field.
*
* @return content description
*/
@Override
public String getDescription() throws MessagingException {
return getDescription(this);
}
代码示例来源:origin: com.sun.mail/javax.mail
/**
* Returns the "Content-Description" header field of this Message.
* This typically associates some descriptive information with
* this part. Returns null if this field is unavailable or its
* value is absent. <p>
*
* If the Content-Description field is encoded as per RFC 2047,
* it is decoded and converted into Unicode. If the decoding or
* conversion fails, the raw data is returned as-is <p>
*
* This implementation uses the <code>getHeader</code> method
* to obtain the requisite header field.
*
* @return content-description
* @exception MessagingException for failures
*/
@Override
public String getDescription() throws MessagingException {
return MimeBodyPart.getDescription(this);
}
代码示例来源:origin: javax.mail/com.springsource.javax.mail
/**
* Returns the "Content-Description" header field of this body part.
* This typically associates some descriptive information with
* this part. Returns null if this field is unavailable or its
* value is absent. <p>
*
* If the Content-Description field is encoded as per RFC 2047,
* it is decoded and converted into Unicode. If the decoding or
* conversion fails, the raw data is returned as is. <p>
*
* This implementation uses <code>getHeader(name)</code>
* to obtain the requisite header field.
*
* @return content description
*/
public String getDescription() throws MessagingException {
return getDescription(this);
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.javax.mail
/**
* Returns the "Content-Description" header field of this body part.
* This typically associates some descriptive information with
* this part. Returns null if this field is unavailable or its
* value is absent. <p>
*
* If the Content-Description field is encoded as per RFC 2047,
* it is decoded and converted into Unicode. If the decoding or
* conversion fails, the raw data is returned as is. <p>
*
* This implementation uses <code>getHeader(name)</code>
* to obtain the requisite header field.
*
* @return content description
*/
public String getDescription() throws MessagingException {
return getDescription(this);
}
代码示例来源:origin: javax.mail/com.springsource.javax.mail
/**
* Returns the "Content-Description" header field of this Message.
* This typically associates some descriptive information with
* this part. Returns null if this field is unavailable or its
* value is absent. <p>
*
* If the Content-Description field is encoded as per RFC 2047,
* it is decoded and converted into Unicode. If the decoding or
* conversion fails, the raw data is returned as-is <p>
*
* This implementation uses the <code>getHeader</code> method
* to obtain the requisite header field.
*
* @return content-description
* @exception MessagingException
*/
public String getDescription() throws MessagingException {
return MimeBodyPart.getDescription(this);
}
代码示例来源:origin: org.glassfish.metro/webservices-extra
/**
* Returns the "Content-Description" header field of this Message.
* This typically associates some descriptive information with
* this part. Returns null if this field is unavailable or its
* value is absent. <p>
*
* If the Content-Description field is encoded as per RFC 2047,
* it is decoded and converted into Unicode. If the decoding or
* conversion fails, the raw data is returned as-is <p>
*
* This implementation uses the <code>getHeader</code> method
* to obtain the requisite header field.
*
* @return content-description
* @exception MessagingException for failures
*/
@Override
public String getDescription() throws MessagingException {
return MimeBodyPart.getDescription(this);
}
代码示例来源:origin: com.sun.mail/jakarta.mail
/**
* Returns the "Content-Description" header field of this Message.
* This typically associates some descriptive information with
* this part. Returns null if this field is unavailable or its
* value is absent. <p>
*
* If the Content-Description field is encoded as per RFC 2047,
* it is decoded and converted into Unicode. If the decoding or
* conversion fails, the raw data is returned as-is <p>
*
* This implementation uses the <code>getHeader</code> method
* to obtain the requisite header field.
*
* @return content-description
* @exception MessagingException for failures
*/
@Override
public String getDescription() throws MessagingException {
return MimeBodyPart.getDescription(this);
}
代码示例来源:origin: com.sun.mail/mailapi
/**
* Returns the "Content-Description" header field of this Message.
* This typically associates some descriptive information with
* this part. Returns null if this field is unavailable or its
* value is absent. <p>
*
* If the Content-Description field is encoded as per RFC 2047,
* it is decoded and converted into Unicode. If the decoding or
* conversion fails, the raw data is returned as-is <p>
*
* This implementation uses the <code>getHeader</code> method
* to obtain the requisite header field.
*
* @return content-description
* @exception MessagingException for failures
*/
@Override
public String getDescription() throws MessagingException {
return MimeBodyPart.getDescription(this);
}
代码示例来源:origin: jboss/jboss-javaee-specs
/**
* Returns the "Content-Description" header field of this body part.
* This typically associates some descriptive information with
* this part. Returns null if this field is unavailable or its
* value is absent. <p>
*
* If the Content-Description field is encoded as per RFC 2047,
* it is decoded and converted into Unicode. If the decoding or
* conversion fails, the raw data is returned as is. <p>
*
* This implementation uses <code>getHeader(name)</code>
* to obtain the requisite header field.
*
* @return content description
*/
@Override
public String getDescription() throws MessagingException {
return getDescription(this);
}
代码示例来源:origin: javax.mail/javax.mail-api
/**
* Returns the "Content-Description" header field of this body part.
* This typically associates some descriptive information with
* this part. Returns null if this field is unavailable or its
* value is absent. <p>
*
* If the Content-Description field is encoded as per RFC 2047,
* it is decoded and converted into Unicode. If the decoding or
* conversion fails, the raw data is returned as is. <p>
*
* This implementation uses <code>getHeader(name)</code>
* to obtain the requisite header field.
*
* @return content description
*/
@Override
public String getDescription() throws MessagingException {
return getDescription(this);
}
代码示例来源:origin: javax.mail/javax.mail-api
/**
* Returns the "Content-Description" header field of this Message.
* This typically associates some descriptive information with
* this part. Returns null if this field is unavailable or its
* value is absent. <p>
*
* If the Content-Description field is encoded as per RFC 2047,
* it is decoded and converted into Unicode. If the decoding or
* conversion fails, the raw data is returned as-is <p>
*
* This implementation uses the <code>getHeader</code> method
* to obtain the requisite header field.
*
* @return content-description
* @exception MessagingException for failures
*/
@Override
public String getDescription() throws MessagingException {
return MimeBodyPart.getDescription(this);
}
代码示例来源:origin: com.sun.mail/mailapi
/**
* Returns the "Content-Description" header field of this body part.
* This typically associates some descriptive information with
* this part. Returns null if this field is unavailable or its
* value is absent. <p>
*
* If the Content-Description field is encoded as per RFC 2047,
* it is decoded and converted into Unicode. If the decoding or
* conversion fails, the raw data is returned as is. <p>
*
* This implementation uses <code>getHeader(name)</code>
* to obtain the requisite header field.
*
* @return content description
*/
@Override
public String getDescription() throws MessagingException {
return getDescription(this);
}
代码示例来源:origin: org.glassfish.metro/webservices-extra
/**
* Returns the "Content-Description" header field of this body part.
* This typically associates some descriptive information with
* this part. Returns null if this field is unavailable or its
* value is absent. <p>
*
* If the Content-Description field is encoded as per RFC 2047,
* it is decoded and converted into Unicode. If the decoding or
* conversion fails, the raw data is returned as is. <p>
*
* This implementation uses <code>getHeader(name)</code>
* to obtain the requisite header field.
*
* @return content description
*/
@Override
public String getDescription() throws MessagingException {
return getDescription(this);
}
代码示例来源:origin: com.sun.mail/android-mail
/**
* Returns the "Content-Description" header field of this body part.
* This typically associates some descriptive information with
* this part. Returns null if this field is unavailable or its
* value is absent. <p>
*
* If the Content-Description field is encoded as per RFC 2047,
* it is decoded and converted into Unicode. If the decoding or
* conversion fails, the raw data is returned as is. <p>
*
* This implementation uses <code>getHeader(name)</code>
* to obtain the requisite header field.
*
* @return content description
*/
@Override
public String getDescription() throws MessagingException {
return getDescription(this);
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.javax.mail
/**
* Returns the "Content-Description" header field of this Message.
* This typically associates some descriptive information with
* this part. Returns null if this field is unavailable or its
* value is absent. <p>
*
* If the Content-Description field is encoded as per RFC 2047,
* it is decoded and converted into Unicode. If the decoding or
* conversion fails, the raw data is returned as-is <p>
*
* This implementation uses the <code>getHeader</code> method
* to obtain the requisite header field.
*
* @return content-description
* @exception MessagingException
*/
public String getDescription() throws MessagingException {
return MimeBodyPart.getDescription(this);
}
代码示例来源:origin: com.sun.mail/jakarta.mail
/**
* Returns the "Content-Description" header field of this body part.
* This typically associates some descriptive information with
* this part. Returns null if this field is unavailable or its
* value is absent. <p>
*
* If the Content-Description field is encoded as per RFC 2047,
* it is decoded and converted into Unicode. If the decoding or
* conversion fails, the raw data is returned as is. <p>
*
* This implementation uses <code>getHeader(name)</code>
* to obtain the requisite header field.
*
* @return content description
*/
@Override
public String getDescription() throws MessagingException {
return getDescription(this);
}
代码示例来源:origin: com.sun.mail/android-mail
/**
* Returns the "Content-Description" header field of this Message.
* This typically associates some descriptive information with
* this part. Returns null if this field is unavailable or its
* value is absent. <p>
*
* If the Content-Description field is encoded as per RFC 2047,
* it is decoded and converted into Unicode. If the decoding or
* conversion fails, the raw data is returned as-is <p>
*
* This implementation uses the <code>getHeader</code> method
* to obtain the requisite header field.
*
* @return content-description
* @exception MessagingException for failures
*/
@Override
public String getDescription() throws MessagingException {
return MimeBodyPart.getDescription(this);
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.javax.mail
/**
* Returns the "Content-Description" header field of this BodyPart.
* This typically associates some descriptive information with
* this part. Returns null if this field is unavailable or its
* value is absent. <p>
*
* If the Content-Description field is encoded as per RFC 2047,
* it is decoded and converted into Unicode. If the decoding or
* conversion fails, the raw data is returned as-is <p>
*
* This implementation uses <code>getHeader(name)</code>
* to obtain the requisite header field.
*
* @return content-description
*/
public String getDescription() throws MessagingException {
String desc = super.getDescription();
if (desc == null)
desc = getHeader("X-Sun-Data-Description", null);
return desc;
}
内容来源于网络,如有侵权,请联系作者删除!