/** * Creates a MIME message from the content's stream. The content stream * is closed when EOF is reached. * * @param in MIME message stream * @param boundary the separator for parts(pass it without --) * @param config various configuration parameters */ public MIMEMessage(InputStream in, String boundary, MIMEConfig config) { this.in = in; this.config = config; MIMEParser parser = new MIMEParser(in, boundary, config); it = parser.iterator(); partsList = new ArrayList<MIMEPart>(); partsMap = new HashMap<String, MIMEPart>(); if (config.isParseEagerly()) { parseAll(); } }
/** * Creates a MIME message from the content's stream. The content stream * is closed when EOF is reached. * * @param in MIME message stream * @param boundary the separator for parts(pass it without --) * @param config various configuration parameters */ public MIMEMessage(InputStream in, String boundary, MIMEConfig config) { this.in = in; this.config = config; MIMEParser parser = new MIMEParser(in, boundary, config); it = parser.iterator(); if (config.isParseEagerly()) { parseAll(); } }
/** * Creates a MIME message from the content's stream. The content stream * is closed when EOF is reached. * * @param in MIME message stream * @param boundary the separator for parts(pass it without --) * @param config various configuration parameters */ public MIMEMessage(InputStream in, String boundary, MIMEConfig config) { this.in = in; this.config = config; MIMEParser parser = new MIMEParser(in, boundary, config); it = parser.iterator(); if (config.isParseEagerly()) { parseAll(); } }
/** * Creates a MIME message from the content's stream. The content stream * is closed when EOF is reached. * * @param in MIME message stream * @param boundary the separator for parts(pass it without --) * @param config various configuration parameters */ public MIMEMessage(InputStream in, String boundary, MIMEConfig config) { this.in = in; this.config = config; MIMEParser parser = new MIMEParser(in, boundary, config); it = parser.iterator(); if (config.isParseEagerly()) { parseAll(); } }