本文整理了Java中javax.mail.internet.MimeBodyPart.getEncoding()
方法的一些代码示例,展示了MimeBodyPart.getEncoding()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。MimeBodyPart.getEncoding()
方法的具体详情如下:
包路径:javax.mail.internet.MimeBodyPart
类名称:MimeBodyPart
方法名:getEncoding
[英]Returns the content transfer encoding from the "Content-Transfer-Encoding" header field. Returns null
if the header is unavailable or its value is absent.
This implementation uses getHeader(name)
to obtain the requisite header field.
[中]从“内容传输编码”标题字段返回内容传输编码。如果标头不可用或其值不存在,则返回null
。
此实现使用getHeader(name)
来获取必需的头字段。
代码示例来源:origin: camunda/camunda-bpm-platform
/**
* Returns the content transfer encoding from the
* "Content-Transfer-Encoding" header
* field. Returns <code>null</code> if the header is unavailable
* or its value is absent. <p>
*
* This implementation uses <code>getHeader(name)</code>
* to obtain the requisite header field.
*
* @see #headers
*/
public String getEncoding() throws MessagingException {
return getEncoding(this);
}
代码示例来源:origin: camunda/camunda-bpm-platform
/**
* Returns the content transfer encoding from the
* "Content-Transfer-Encoding" header
* field. Returns <code>null</code> if the header is unavailable
* or its value is absent. <p>
*
* This implementation uses the <code>getHeader</code> method
* to obtain the requisite header field.
*
* @return content-transfer-encoding
* @exception MessagingException for failures
*/
public String getEncoding() throws MessagingException {
return MimeBodyPart.getEncoding(this);
}
代码示例来源:origin: com.sun.mail/javax.mail
/**
* Returns the content transfer encoding from the
* "Content-Transfer-Encoding" header
* field. Returns <code>null</code> if the header is unavailable
* or its value is absent. <p>
*
* This implementation uses <code>getHeader(name)</code>
* to obtain the requisite header field.
*
* @see #headers
*/
@Override
public String getEncoding() throws MessagingException {
return getEncoding(this);
}
代码示例来源:origin: com.sun.mail/javax.mail
/**
* Returns the content transfer encoding from the
* "Content-Transfer-Encoding" header
* field. Returns <code>null</code> if the header is unavailable
* or its value is absent. <p>
*
* This implementation uses the <code>getHeader</code> method
* to obtain the requisite header field.
*
* @return content-transfer-encoding
* @exception MessagingException for failures
*/
@Override
public String getEncoding() throws MessagingException {
return MimeBodyPart.getEncoding(this);
}
代码示例来源:origin: com.sun.mail/mailapi
/**
* Returns the content transfer encoding from the
* "Content-Transfer-Encoding" header
* field. Returns <code>null</code> if the header is unavailable
* or its value is absent. <p>
*
* This implementation uses <code>getHeader(name)</code>
* to obtain the requisite header field.
*
* @see #headers
*/
@Override
public String getEncoding() throws MessagingException {
return getEncoding(this);
}
代码示例来源:origin: javax.mail/javax.mail-api
/**
* Returns the content transfer encoding from the
* "Content-Transfer-Encoding" header
* field. Returns <code>null</code> if the header is unavailable
* or its value is absent. <p>
*
* This implementation uses <code>getHeader(name)</code>
* to obtain the requisite header field.
*
* @see #headers
*/
@Override
public String getEncoding() throws MessagingException {
return getEncoding(this);
}
代码示例来源:origin: javax.mail/javax.mail-api
/**
* Returns the content transfer encoding from the
* "Content-Transfer-Encoding" header
* field. Returns <code>null</code> if the header is unavailable
* or its value is absent. <p>
*
* This implementation uses the <code>getHeader</code> method
* to obtain the requisite header field.
*
* @return content-transfer-encoding
* @exception MessagingException for failures
*/
@Override
public String getEncoding() throws MessagingException {
return MimeBodyPart.getEncoding(this);
}
代码示例来源:origin: javax.mail/com.springsource.javax.mail
/**
* Returns the content transfer encoding from the
* "Content-Transfer-Encoding" header
* field. Returns <code>null</code> if the header is unavailable
* or its value is absent. <p>
*
* This implementation uses <code>getHeader(name)</code>
* to obtain the requisite header field.
*
* @see #headers
*/
public String getEncoding() throws MessagingException {
return getEncoding(this);
}
代码示例来源:origin: jboss/jboss-javaee-specs
/**
* Returns the content transfer encoding from the
* "Content-Transfer-Encoding" header
* field. Returns <code>null</code> if the header is unavailable
* or its value is absent. <p>
*
* This implementation uses <code>getHeader(name)</code>
* to obtain the requisite header field.
*
* @see #headers
*/
@Override
public String getEncoding() throws MessagingException {
return getEncoding(this);
}
代码示例来源:origin: org.glassfish.metro/webservices-extra
/**
* Returns the content transfer encoding from the
* "Content-Transfer-Encoding" header
* field. Returns <code>null</code> if the header is unavailable
* or its value is absent. <p>
*
* This implementation uses the <code>getHeader</code> method
* to obtain the requisite header field.
*
* @return content-transfer-encoding
* @exception MessagingException for failures
*/
@Override
public String getEncoding() throws MessagingException {
return MimeBodyPart.getEncoding(this);
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.javax.mail
/**
* Returns the content transfer encoding from the
* "Content-Transfer-Encoding" header
* field. Returns <code>null</code> if the header is unavailable
* or its value is absent. <p>
*
* This implementation uses <code>getHeader(name)</code>
* to obtain the requisite header field.
*
* @see #headers
*/
public String getEncoding() throws MessagingException {
return getEncoding(this);
}
代码示例来源:origin: javax.mail/com.springsource.javax.mail
/**
* Returns the content transfer encoding from the
* "Content-Transfer-Encoding" header
* field. Returns <code>null</code> if the header is unavailable
* or its value is absent. <p>
*
* This implementation uses the <code>getHeader</code> method
* to obtain the requisite header field.
*
* @return content-transfer-encoding
* @exception MessagingException
*/
public String getEncoding() throws MessagingException {
return MimeBodyPart.getEncoding(this);
}
代码示例来源:origin: jboss/jboss-javaee-specs
/**
* Returns the content transfer encoding from the
* "Content-Transfer-Encoding" header
* field. Returns <code>null</code> if the header is unavailable
* or its value is absent. <p>
*
* This implementation uses the <code>getHeader</code> method
* to obtain the requisite header field.
*
* @return content-transfer-encoding
* @exception MessagingException for failures
*/
@Override
public String getEncoding() throws MessagingException {
return MimeBodyPart.getEncoding(this);
}
代码示例来源:origin: com.sun.mail/android-mail
/**
* Returns the content transfer encoding from the
* "Content-Transfer-Encoding" header
* field. Returns <code>null</code> if the header is unavailable
* or its value is absent. <p>
*
* This implementation uses the <code>getHeader</code> method
* to obtain the requisite header field.
*
* @return content-transfer-encoding
* @exception MessagingException for failures
*/
@Override
public String getEncoding() throws MessagingException {
return MimeBodyPart.getEncoding(this);
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.javax.mail
/**
* Returns the content transfer encoding from the
* "Content-Transfer-Encoding" header
* field. Returns <code>null</code> if the header is unavailable
* or its value is absent. <p>
*
* This implementation uses the <code>getHeader</code> method
* to obtain the requisite header field.
*
* @return content-transfer-encoding
* @exception MessagingException
*/
public String getEncoding() throws MessagingException {
return MimeBodyPart.getEncoding(this);
}
代码示例来源:origin: com.sun.mail/jakarta.mail
/**
* Returns the content transfer encoding from the
* "Content-Transfer-Encoding" header
* field. Returns <code>null</code> if the header is unavailable
* or its value is absent. <p>
*
* This implementation uses <code>getHeader(name)</code>
* to obtain the requisite header field.
*
* @see #headers
*/
@Override
public String getEncoding() throws MessagingException {
return getEncoding(this);
}
代码示例来源:origin: org.glassfish.metro/webservices-extra
/**
* Returns the content transfer encoding from the
* "Content-Transfer-Encoding" header
* field. Returns <code>null</code> if the header is unavailable
* or its value is absent. <p>
*
* This implementation uses <code>getHeader(name)</code>
* to obtain the requisite header field.
*
* @see #headers
*/
@Override
public String getEncoding() throws MessagingException {
return getEncoding(this);
}
代码示例来源:origin: com.sun.mail/android-mail
/**
* Returns the content transfer encoding from the
* "Content-Transfer-Encoding" header
* field. Returns <code>null</code> if the header is unavailable
* or its value is absent. <p>
*
* This implementation uses <code>getHeader(name)</code>
* to obtain the requisite header field.
*
* @see #headers
*/
@Override
public String getEncoding() throws MessagingException {
return getEncoding(this);
}
代码示例来源:origin: org.apache.geronimo.specs/geronimo-javamail_1.3.1_spec
public void writeTo(OutputStream out) throws IOException, MessagingException {
headers.writeTo(out, null);
// add the separater between the headers and the data portion.
out.write('\r');
out.write('\n');
// we need to process this using the transfer encoding type
OutputStream encodingStream = MimeUtility.encode(out, getEncoding());
getDataHandler().writeTo(encodingStream);
encodingStream.flush();
}
代码示例来源:origin: org.apache.geronimo.specs/geronimo-javamail_1.4_spec
public void writeTo(OutputStream out) throws IOException, MessagingException {
headers.writeTo(out, null);
// add the separater between the headers and the data portion.
out.write('\r');
out.write('\n');
// we need to process this using the transfer encoding type
OutputStream encodingStream = MimeUtility.encode(out, getEncoding());
getDataHandler().writeTo(encodingStream);
encodingStream.flush();
}
内容来源于网络,如有侵权,请联系作者删除!