本文整理了Java中javax.mail.internet.MimeMultipart.createMimeBodyPart()
方法的一些代码示例,展示了MimeMultipart.createMimeBodyPart()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。MimeMultipart.createMimeBodyPart()
方法的具体详情如下:
包路径:javax.mail.internet.MimeMultipart
类名称:MimeMultipart
方法名:createMimeBodyPart
[英]Create and return a MimeBodyPart object to represent a body part parsed from the InputStream. Subclasses can override this method to return a subclass of MimeBodyPart, if necessary. This implementation simply constructs and returns a MimeBodyPart object.
[中]创建并返回一个MimeBodyPart对象,以表示从InputStream解析的身体部位。如有必要,子类可以重写此方法以返回MimeBodyPart的子类。这个实现只是构造并返回一个MimeBodyPart对象。
代码示例来源:origin: com.sun.mail/javax.mail
private MimeBodyPart createMimeBodyPartIs(InputStream is)
throws MessagingException {
try {
return createMimeBodyPart(is);
} finally {
try {
is.close();
} catch (IOException ex) {
// ignore it
}
}
}
}
代码示例来源:origin: camunda/camunda-bpm-platform
part = createMimeBodyPart(headers, buf.toByteArray());
代码示例来源:origin: com.sun.mail/javax.mail
part = createMimeBodyPart(headers, buf.toByteArray());
代码示例来源:origin: camunda/camunda-bpm-platform
private MimeBodyPart createMimeBodyPartIs(InputStream is)
throws MessagingException {
try {
return createMimeBodyPart(is);
} finally {
try {
is.close();
} catch (IOException ex) {
// ignore it
}
}
}
}
代码示例来源:origin: javax.mail/javax.mail-api
part = createMimeBodyPart(headers, buf.toByteArray());
代码示例来源:origin: javax.mail/com.springsource.javax.mail
private MimeBodyPart createMimeBodyPartIs(InputStream is)
throws MessagingException {
try {
return createMimeBodyPart(is);
} finally {
try {
is.close();
} catch (IOException ex) {
// ignore it
}
}
}
}
代码示例来源:origin: javax.mail/com.springsource.javax.mail
part = createMimeBodyPartIs(sin.newStream(start, end));
else
part = createMimeBodyPart(headers, buf.toByteArray());
super.addBodyPart(part);
代码示例来源:origin: javax.mail/javax.mail-api
private MimeBodyPart createMimeBodyPartIs(InputStream is)
throws MessagingException {
try {
return createMimeBodyPart(is);
} finally {
try {
is.close();
} catch (IOException ex) {
// ignore it
}
}
}
}
代码示例来源:origin: org.glassfish.metro/webservices-extra
part = createMimeBodyPart(headers, buf.toByteArray());
代码示例来源:origin: com.sun.mail/mailapi
private MimeBodyPart createMimeBodyPartIs(InputStream is)
throws MessagingException {
try {
return createMimeBodyPart(is);
} finally {
try {
is.close();
} catch (IOException ex) {
// ignore it
}
}
}
}
代码示例来源:origin: com.sun.mail/mailapi
part = createMimeBodyPart(headers, buf.toByteArray());
代码示例来源:origin: com.sun.mail/jakarta.mail
private MimeBodyPart createMimeBodyPartIs(InputStream is)
throws MessagingException {
try {
return createMimeBodyPart(is);
} finally {
try {
is.close();
} catch (IOException ex) {
// ignore it
}
}
}
}
代码示例来源:origin: jboss/jboss-javaee-specs
part = createMimeBodyPart(headers, buf.toByteArray());
代码示例来源:origin: com.sun.mail/android-mail
private MimeBodyPart createMimeBodyPartIs(InputStream is)
throws MessagingException {
try {
return createMimeBodyPart(is);
} finally {
try {
is.close();
} catch (IOException ex) {
// ignore it
}
}
}
}
代码示例来源:origin: com.sun.mail/jakarta.mail
part = createMimeBodyPart(headers, buf.toByteArray());
代码示例来源:origin: org.glassfish.metro/webservices-extra
private MimeBodyPart createMimeBodyPartIs(InputStream is)
throws MessagingException {
try {
return createMimeBodyPart(is);
} finally {
try {
is.close();
} catch (IOException ex) {
// ignore it
}
}
}
}
代码示例来源:origin: com.sun.mail/android-mail
part = createMimeBodyPart(headers, buf.toByteArray());
代码示例来源:origin: jboss/jboss-javaee-specs
private MimeBodyPart createMimeBodyPartIs(InputStream is)
throws MessagingException {
try {
return createMimeBodyPart(is);
} finally {
try {
is.close();
} catch (IOException ex) {
// ignore it
}
}
}
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.javax.mail
part = createMimeBodyPart(sin.newStream(start, end));
else
part = createMimeBodyPart(headers, buf.toByteArray());
super.addBodyPart(part);
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.javax.mail
part = createMimeBodyPart(sin.newStream(start, end));
} else {
part = createMimeBodyPart(headers, buf.toByteArray());
内容来源于网络,如有侵权,请联系作者删除!