本文整理了Java中javax.mail.internet.MimeMessage.parse()
方法的一些代码示例,展示了MimeMessage.parse()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。MimeMessage.parse()
方法的具体详情如下:
包路径:javax.mail.internet.MimeMessage
类名称:MimeMessage
方法名:parse
[英]Parse the InputStream setting the headers
and content
fields appropriately. Also resets the modified
flag.
This method is intended for use by subclasses that need to control when the InputStream is parsed.
[中]分析InputStream,适当设置headers
和content
字段。还重置modified
标志。
此方法适用于需要控制何时解析InputStream的子类。
代码示例来源:origin: camunda/camunda-bpm-platform
/**
* Constructs a MimeMessage by reading and parsing the data from the
* specified MIME InputStream. The InputStream will be left positioned
* at the end of the data for the message. Note that the input stream
* parse is done within this constructor itself. <p>
*
* This method is for providers subclassing <code>MimeMessage</code>.
*
* @param folder The containing folder.
* @param is the message input stream
* @param msgnum Message number of this message within its folder
* @exception MessagingException for failures
*/
protected MimeMessage(Folder folder, InputStream is, int msgnum)
throws MessagingException {
this(folder, msgnum);
initStrict();
parse(is);
}
代码示例来源:origin: com.sun.mail/javax.mail
/**
* Constructs a MimeMessage by reading and parsing the data from the
* specified MIME InputStream. The InputStream will be left positioned
* at the end of the data for the message. Note that the input stream
* parse is done within this constructor itself. <p>
*
* This method is for providers subclassing <code>MimeMessage</code>.
*
* @param folder The containing folder.
* @param is the message input stream
* @param msgnum Message number of this message within its folder
* @exception MessagingException for failures
*/
protected MimeMessage(Folder folder, InputStream is, int msgnum)
throws MessagingException {
this(folder, msgnum);
initStrict();
parse(is);
}
代码示例来源:origin: camunda/camunda-bpm-platform
/**
* Constructs a MimeMessage by reading and parsing the data from the
* specified MIME InputStream. The InputStream will be left positioned
* at the end of the data for the message. Note that the input stream
* parse is done within this constructor itself. <p>
*
* The input stream contains an entire MIME formatted message with
* headers and data.
*
* @param session Session object for this message
* @param is the message input stream
* @exception MessagingException for failures
*/
public MimeMessage(Session session, InputStream is)
throws MessagingException {
super(session);
flags = new Flags(); // empty Flags object
initStrict();
parse(is);
saved = true;
}
代码示例来源:origin: com.sun.mail/javax.mail
/**
* Constructs a MimeMessage by reading and parsing the data from the
* specified MIME InputStream. The InputStream will be left positioned
* at the end of the data for the message. Note that the input stream
* parse is done within this constructor itself. <p>
*
* The input stream contains an entire MIME formatted message with
* headers and data.
*
* @param session Session object for this message
* @param is the message input stream
* @exception MessagingException for failures
*/
public MimeMessage(Session session, InputStream is)
throws MessagingException {
super(session);
flags = new Flags(); // empty Flags object
initStrict();
parse(is);
saved = true;
}
代码示例来源:origin: camunda/camunda-bpm-platform
SharedByteArrayInputStream bis =
new SharedByteArrayInputStream(bos.toByteArray());
parse(bis);
bis.close();
saved = true;
代码示例来源:origin: com.sun.mail/javax.mail
SharedByteArrayInputStream bis =
new SharedByteArrayInputStream(bos.toByteArray());
parse(bis);
bis.close();
saved = true;
代码示例来源:origin: org.apache.james/james-server-core-library
/**
* @see javax.mail.internet.MimeMessage#parse(java.io.InputStream)
*/
protected synchronized void parse(InputStream is) throws MessagingException {
// the super implementation calls
// headers = createInternetHeaders(is);
super.parse(is);
messageParsed = true;
}
代码示例来源:origin: org.apache.geronimo.specs/geronimo-javamail_1.3.1_spec
/**
* Create a MimeMessage by reading an parsing the data from the supplied stream.
*
* @param session the session for this message
* @param in the stream to load from
* @throws MessagingException if there is a problem reading or parsing the stream
*/
public MimeMessage(Session session, InputStream in) throws MessagingException {
this(session);
parse(in);
// this message is complete, so marked as unmodified.
modified = false;
// and no saving required
saved = true;
}
代码示例来源:origin: org.apache.geronimo.specs/geronimo-javamail_1.4_spec
/**
* Create a MimeMessage by reading an parsing the data from the supplied stream.
*
* @param session the session for this message
* @param in the stream to load from
* @throws MessagingException if there is a problem reading or parsing the stream
*/
public MimeMessage(Session session, InputStream in) throws MessagingException {
this(session);
parse(in);
// this message is complete, so marked as unmodified.
modified = false;
// and no saving required
saved = true;
}
代码示例来源:origin: org.apache.geronimo.specs/geronimo-javamail_1.4_spec
/**
* Create a MimeMessage by reading an parsing the data from the supplied stream.
*
* @param folder the folder for this message
* @param in the stream to load from
* @param number the message number of the new message
* @throws MessagingException if there is a problem reading or parsing the stream
*/
protected MimeMessage(Folder folder, InputStream in, int number) throws MessagingException {
this(folder, number);
parse(in);
// this message is complete, so marked as unmodified.
modified = false;
// and no saving required
saved = true;
}
代码示例来源:origin: org.apache.geronimo.specs/geronimo-javamail_1.3.1_spec
/**
* Create a MimeMessage by reading an parsing the data from the supplied stream.
*
* @param folder the folder for this message
* @param in the stream to load from
* @param number the message number of the new message
* @throws MessagingException if there is a problem reading or parsing the stream
*/
protected MimeMessage(Folder folder, InputStream in, int number) throws MessagingException {
this(folder, number);
parse(in);
// this message is complete, so marked as unmodified.
modified = false;
// and no saving required
saved = true;
}
代码示例来源:origin: com.sun.mail/jakarta.mail
/**
* Constructs a MimeMessage by reading and parsing the data from the
* specified MIME InputStream. The InputStream will be left positioned
* at the end of the data for the message. Note that the input stream
* parse is done within this constructor itself. <p>
*
* This method is for providers subclassing <code>MimeMessage</code>.
*
* @param folder The containing folder.
* @param is the message input stream
* @param msgnum Message number of this message within its folder
* @exception MessagingException for failures
*/
protected MimeMessage(Folder folder, InputStream is, int msgnum)
throws MessagingException {
this(folder, msgnum);
initStrict();
parse(is);
}
代码示例来源:origin: javax.mail/com.springsource.javax.mail
/**
* Constructs a MimeMessage by reading and parsing the data from the
* specified MIME InputStream. The InputStream will be left positioned
* at the end of the data for the message. Note that the input stream
* parse is done within this constructor itself. <p>
*
* This method is for providers subclassing <code>MimeMessage</code>.
*
* @param folder The containing folder.
* @param is the message input stream
* @param msgnum Message number of this message within its folder
* @exception MessagingException
*/
protected MimeMessage(Folder folder, InputStream is, int msgnum)
throws MessagingException {
this(folder, msgnum);
initStrict();
parse(is);
}
代码示例来源:origin: javax.mail/javax.mail-api
/**
* Constructs a MimeMessage by reading and parsing the data from the
* specified MIME InputStream. The InputStream will be left positioned
* at the end of the data for the message. Note that the input stream
* parse is done within this constructor itself. <p>
*
* This method is for providers subclassing <code>MimeMessage</code>.
*
* @param folder The containing folder.
* @param is the message input stream
* @param msgnum Message number of this message within its folder
* @exception MessagingException for failures
*/
protected MimeMessage(Folder folder, InputStream is, int msgnum)
throws MessagingException {
this(folder, msgnum);
initStrict();
parse(is);
}
代码示例来源:origin: com.sun.mail/mailapi
/**
* Constructs a MimeMessage by reading and parsing the data from the
* specified MIME InputStream. The InputStream will be left positioned
* at the end of the data for the message. Note that the input stream
* parse is done within this constructor itself. <p>
*
* This method is for providers subclassing <code>MimeMessage</code>.
*
* @param folder The containing folder.
* @param is the message input stream
* @param msgnum Message number of this message within its folder
* @exception MessagingException for failures
*/
protected MimeMessage(Folder folder, InputStream is, int msgnum)
throws MessagingException {
this(folder, msgnum);
initStrict();
parse(is);
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.javax.mail
/**
* Constructs a MimeMessage by reading and parsing the data from the
* specified MIME InputStream. The InputStream will be left positioned
* at the end of the data for the message. Note that the input stream
* parse is done within this constructor itself. <p>
*
* This method is for providers subclassing <code>MimeMessage</code>.
*
* @param folder The containing folder.
* @param is the message input stream
* @param msgnum Message number of this message within its folder
* @exception MessagingException
*/
protected MimeMessage(Folder folder, InputStream is, int msgnum)
throws MessagingException {
this(folder, msgnum);
initStrict();
parse(is);
}
代码示例来源:origin: org.glassfish.metro/webservices-extra
/**
* Constructs a MimeMessage by reading and parsing the data from the
* specified MIME InputStream. The InputStream will be left positioned
* at the end of the data for the message. Note that the input stream
* parse is done within this constructor itself. <p>
*
* This method is for providers subclassing <code>MimeMessage</code>.
*
* @param folder The containing folder.
* @param is the message input stream
* @param msgnum Message number of this message within its folder
* @exception MessagingException for failures
*/
protected MimeMessage(Folder folder, InputStream is, int msgnum)
throws MessagingException {
this(folder, msgnum);
initStrict();
parse(is);
}
代码示例来源:origin: com.sun.mail/jakarta.mail
/**
* Constructs a MimeMessage by reading and parsing the data from the
* specified MIME InputStream. The InputStream will be left positioned
* at the end of the data for the message. Note that the input stream
* parse is done within this constructor itself. <p>
*
* The input stream contains an entire MIME formatted message with
* headers and data.
*
* @param session Session object for this message
* @param is the message input stream
* @exception MessagingException for failures
*/
public MimeMessage(Session session, InputStream is)
throws MessagingException {
super(session);
flags = new Flags(); // empty Flags object
initStrict();
parse(is);
saved = true;
}
代码示例来源:origin: org.glassfish.metro/webservices-extra
/**
* Constructs a MimeMessage by reading and parsing the data from the
* specified MIME InputStream. The InputStream will be left positioned
* at the end of the data for the message. Note that the input stream
* parse is done within this constructor itself. <p>
*
* The input stream contains an entire MIME formatted message with
* headers and data.
*
* @param session Session object for this message
* @param is the message input stream
* @exception MessagingException for failures
*/
public MimeMessage(Session session, InputStream is)
throws MessagingException {
super(session);
flags = new Flags(); // empty Flags object
initStrict();
parse(is);
saved = true;
}
代码示例来源:origin: javax.mail/javax.mail-api
/**
* Constructs a MimeMessage by reading and parsing the data from the
* specified MIME InputStream. The InputStream will be left positioned
* at the end of the data for the message. Note that the input stream
* parse is done within this constructor itself. <p>
*
* The input stream contains an entire MIME formatted message with
* headers and data.
*
* @param session Session object for this message
* @param is the message input stream
* @exception MessagingException for failures
*/
public MimeMessage(Session session, InputStream is)
throws MessagingException {
super(session);
flags = new Flags(); // empty Flags object
initStrict();
parse(is);
saved = true;
}
内容来源于网络,如有侵权,请联系作者删除!