亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? email.java

?? 基于UDP的可靠郵件系統(tǒng)
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
	 * Note: this size is not guaranteed to be accurate - see Sun's	 * documentation of MimeMessage.getSize().	 * </p>	 * 	 * @return approximate size of full message including headers.	 * 	 * @throws MessagingException	 *             if a problem occurs while computing the message size	 */	public long getMessageSize() throws Exception {		// If we have a MimeMessageWrapper, then we can ask it for just the		// message size and skip calculating it		// if (message instanceof MimeMessageWrapper) {		// MimeMessageWrapper wrapper = (MimeMessageWrapper) message;		// return wrapper.getMessageSize();		// }		// // SK: Should probably eventually store this as a locally		// // maintained value (so we don't have to load and reparse		// // messages each time).		// long size = message.getSize();		// Enumeration e = message.getAllHeaderLines();		// while (e.hasMoreElements()) {		// size += ((String) e.nextElement()).length();		// }		// return size;		return message.length;	}	/**	 * Set the error message associated with this Email.	 * 	 * @param msg	 *            the new error message associated with this Email	 */	public void setErrorMessage(String msg) {		this.errorMessage = msg;	}	/**	 * Set the MimeMessage associated with this Email.	 * 	 * @param message	 *            the new MimeMessage associated with this Email	 */	public void setMessage(byte[] message) {		this.message = message;	}	/**	 * Set the recipients for this Email.	 * 	 * @param recipients	 *            the recipients for this Email	 */	public void setRecipients(Collection recipients) {		this.recipients = recipients;	}	/**	 * Set the sender of this Email.	 * 	 * @param sender	 *            the sender of this Email	 */	public void setSender(MailAddress sender) {		this.sender = sender;	}	/**	 * Set the state of this Email.	 * 	 * @param state	 *            the state of this Email	 */	public void setState(String state) {		this.state = state;	}	/**	 * Set the remote address associated with this Email.	 * 	 * @param remoteHost	 *            the new remote host associated with this Email	 */	public void setRemoteHost(String remoteHost) {		this.remoteHost = remoteHost;	}	/**	 * Set the remote address associated with this Email.	 * 	 * @param remoteAddr	 *            the new remote address associated with this Email	 */	public void setRemoteAddr(String remoteAddr) {		this.remoteAddr = remoteAddr;	}	/**	 * Set the date this mail was last updated.	 * 	 * @param lastUpdated	 *            the date the mail was last updated	 */	public void setLastUpdated(Date lastUpdated) {		// Make a defensive copy to ensure that the date		// doesn't get changed external to the class		if (lastUpdated != null) {			lastUpdated = new Date(lastUpdated.getTime());		}		this.lastUpdated = lastUpdated;	}	/**	 * Writes the message out to an OutputStream.	 * 	 * @param out	 *            the OutputStream to which to write the content	 * 	 * @throws Exception	 *             if the MimeMessage is not set for this Email	 * @throws IOException	 *             if an error occurs while reading or writing from the stream	 */	public void writeMessageTo(OutputStream out) throws IOException, Exception {		if (message != null) {			// message.writeTo(out);			out.write(message);		} else {			throw new Exception("No message set for this Email.");		}	}	/**	 * Generates a bounce mail that is a bounce of the original message.	 * 	 * @param bounceText	 *            the text to be prepended to the message to describe the bounce	 *            condition	 * 	 * @return the bounce mail	 * 	 * @throws Exception	 *             if the bounce mail could not be created	 */	// public Mail bounce(String bounceText) throws Exception {	// // This sends a message to the james component that is a bounce of the	// // sent message	// MimeMessage original = getMessage();	// MimeMessage reply = (MimeMessage) original.reply(false);	// reply.setSubject("Re: " + original.getSubject());	// Collection recipients = new HashSet();	// recipients.add(getSender());	// InternetAddress addr[] = { new InternetAddress(getSender().toString()) };	// reply.setRecipients(Message.RecipientType.TO, addr);	// reply.setFrom(new InternetAddress(getRecipients().iterator().next()	// .toString()));	// reply.setText(bounceText);	// reply.setHeader(RFC2822Headers.MESSAGE_ID, "replyTo-" + getName());	// return new Email("replyTo-" + getName(), new MailAddress(	// getRecipients().iterator().next().toString()), recipients,	// reply);	// }	/**	 * Writes the content of the message, up to a total number of lines, out to	 * an OutputStream.	 * 	 * @param out	 *            the OutputStream to which to write the content	 * @param lines	 *            the number of lines to write to the stream	 * 	 * @throws Exception	 *             if the MimeMessage is not set for this Email	 * @throws IOException	 *             if an error occurs while reading or writing from the stream	 */	public void writeContentTo(OutputStream out, int lines) throws IOException,			Exception {		String line;		// BufferedReader br;		if (message != null) {			// br = new BufferedReader(new InputStreamReader(message			// .getInputStream()));			// while (lines-- > 0) {			// if ((line = br.readLine()) == null) {			// break;			// }			// line += "\r\n";			// out.write(line.getBytes());}			out.write(message);		} else {			throw new Exception("No message set for this Email.");		}	}	// Serializable Methods	// TODO: These need some work. Currently very tightly coupled to	// the internal representation.	/**	 * Read the Email from an <code>ObjectInputStream</code>.	 * 	 * @param in	 *            the ObjectInputStream from which the object is read	 * 	 * @throws IOException	 *             if an error occurs while reading from the stream	 * @throws ClassNotFoundException ?	 * @throws ClassCastException	 *             if the serialized objects are not of the appropriate type	 */	private void readObject(java.io.ObjectInputStream in) throws IOException,			ClassNotFoundException {		try {			Object obj = in.readObject();			if (obj == null) {				sender = null;			} else if (obj instanceof String) {				sender = new MailAddress((String) obj);			} else if (obj instanceof MailAddress) {				sender = (MailAddress) obj;			}		} catch (Exception pe) {			throw new IOException("Error parsing sender address: "					+ pe.getMessage());		}		recipients = (Collection) in.readObject();		state = (String) in.readObject();		errorMessage = (String) in.readObject();		name = (String) in.readObject();		remoteHost = (String) in.readObject();		remoteAddr = (String) in.readObject();		setLastUpdated((Date) in.readObject());		// the following is under try/catch to be backwards compatible		// with messages created with James version <= 2.2.0a8		try {			attributes = (HashMap) in.readObject();			message = (byte[]) in.readObject();		} catch (OptionalDataException ode) {			if (ode.eof) {				attributes = new HashMap();			} else {				throw ode;			}		}	}	/**	 * Write the Email to an <code>ObjectOutputStream</code>.	 * 	 * @param in	 *            the ObjectOutputStream to which the object is written	 * 	 * @throws IOException	 *             if an error occurs while writing to the stream	 */	private void writeObject(java.io.ObjectOutputStream out) throws IOException {		lastUpdated = new Date();		out.writeObject(sender);		out.writeObject(recipients);		out.writeObject(state);		out.writeObject(errorMessage);		out.writeObject(name);		out.writeObject(remoteHost);		out.writeObject(remoteAddr);		out.writeObject(lastUpdated);		out.writeObject(attributes);		out.writeObject(message);	}	// /**	// * @see org.apache.avalon.framework.activity.Disposable#dispose()	// */	// public void dispose() {	// try {	// MimeMessage wrapper = getMessage();	// if (wrapper instanceof Disposable) {	// ((Disposable)wrapper).dispose();	// }	// } catch (Exception me) {	// // Ignored	// }	// }	/**	 * This method is necessary, when Mail repositories needs to deal explicitly	 * with storing Mail attributes as a Serializable Note: This method is not	 * exposed in the Mail interface, it is for internal use by James only.	 * 	 * @return Serializable of the entire attributes collection	 * @since 2.2.0	 */	public HashMap getAttributesRaw() {		return attributes;	}	/**	 * This method is necessary, when Mail repositories needs to deal explicitly	 * with retriving Mail attributes as a Serializable Note: This method is not	 * exposed in the Mail interface, it is for internal use by James only.	 * 	 * @return Serializable of the entire attributes collection	 * @since 2.2.0	 */	public void setAttributesRaw(HashMap attr) {		this.attributes = (attr == null) ? new HashMap() : attr;	}	/**	 * @see org.apache.mailet.Mail#getAttribute(String)	 * @since 2.2.0	 */	public Serializable getAttribute(String key) {		return (Serializable) attributes.get(key);	}	/**	 * @see org.apache.mailet.Mail#setAttribute(String,Serializable)	 * @since 2.2.0	 */	public Serializable setAttribute(String key, Serializable object) {		return (Serializable) attributes.put(key, object);	}	/**	 * @see org.apache.mailet.Mail#removeAttribute(String)	 * @since 2.2.0	 */	public Serializable removeAttribute(String key) {		return (Serializable) attributes.remove(key);	}	/**	 * @see org.apache.mailet.Mail#removeAllAttributes()	 * @since 2.2.0	 */	public void removeAllAttributes() {		attributes.clear();	}	/**	 * @see org.apache.mailet.Mail#getAttributeNames()	 * @since 2.2.0	 */	public Iterator getAttributeNames() {		return attributes.keySet().iterator();	}	/**	 * @see org.apache.mailet.Mail#hasAttributes()	 * @since 2.2.0	 */	public boolean hasAttributes() {		return !attributes.isEmpty();	}}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
**欧美大码日韩| 在线精品观看国产| 日本电影亚洲天堂一区| 91精品国产综合久久香蕉麻豆 | 国产伦精品一区二区三区视频青涩 | 91浏览器打开| 久久人人爽人人爽| 日本不卡视频在线观看| 色老综合老女人久久久| 国产精品欧美一区二区三区| 日韩精品一二三四| 欧美艳星brazzers| 亚洲四区在线观看| 成人av资源下载| 欧美精品一区二区三区视频| 调教+趴+乳夹+国产+精品| 91激情五月电影| 亚洲人成7777| 色婷婷综合久久久中文一区二区| 国产日韩欧美麻豆| 国产精品影视天天线| 欧美xfplay| 精品在线播放免费| 欧美精品一区二区蜜臀亚洲| 日韩在线观看一区二区| 欧美日本国产视频| 视频在线在亚洲| 7777精品伊人久久久大香线蕉| 亚洲第四色夜色| 欧美三级日本三级少妇99| 亚洲毛片av在线| 在线免费观看成人短视频| 一区二区不卡在线视频 午夜欧美不卡在 | 视频一区二区国产| 欧美日本乱大交xxxxx| 五月婷婷激情综合| 欧美一级欧美三级在线观看| 蜜桃久久av一区| 久久久久久久久久久久久久久99 | 亚洲人成小说网站色在线 | 伊人一区二区三区| 欧美三级视频在线| 日本亚洲最大的色成网站www| 欧美乱妇20p| 国模无码大尺度一区二区三区 | 欧美一级高清片| 国产一区91精品张津瑜| 国产精品蜜臀av| 在线观看网站黄不卡| 亚洲一二三四久久| 在线不卡一区二区| 国产一区不卡精品| 亚洲久草在线视频| 日韩欧美一区电影| 99久久久无码国产精品| 午夜精品在线看| 久久久久久久网| 色婷婷激情久久| 麻豆国产一区二区| 亚洲三级免费电影| 欧美大肚乱孕交hd孕妇| bt7086福利一区国产| 亚洲chinese男男1069| 国产日韩欧美亚洲| 欧美日韩你懂得| 国产a精品视频| 午夜精品久久久久久久久久久 | 国产成a人亚洲| 五月婷婷综合网| 国产精品无圣光一区二区| 欧美日韩综合在线免费观看| 国产自产高清不卡| 亚洲一区二区欧美日韩| 精品国产乱码久久久久久1区2区| 色综合天天综合给合国产| 久久91精品久久久久久秒播| 亚洲美女精品一区| 亚洲国产成人一区二区三区| 制服.丝袜.亚洲.中文.综合| 成人av在线电影| 麻豆精品国产传媒mv男同| 亚洲精品v日韩精品| 久久精品亚洲一区二区三区浴池| 欧美日韩精品电影| bt欧美亚洲午夜电影天堂| 激情成人综合网| 视频一区二区三区在线| 一区二区三区精品久久久| 国产精品青草综合久久久久99| 欧美va亚洲va| 欧美精品日日鲁夜夜添| 在线看日本不卡| 99精品国产热久久91蜜凸| 国产成人免费av在线| 久久精品国产成人一区二区三区| 午夜精品福利一区二区三区av| 中文字幕亚洲欧美在线不卡| 国产午夜精品一区二区三区视频 | 成人一道本在线| 国产一区二区伦理片| 麻豆精品在线视频| 蜜臀av国产精品久久久久| 天天免费综合色| 偷拍日韩校园综合在线| 亚洲bt欧美bt精品777| 亚洲激情综合网| 亚洲午夜激情网页| 亚洲一区二区三区影院| 亚洲精品成人a在线观看| 亚洲美女区一区| 亚洲精品国产a久久久久久| 亚洲精品成人悠悠色影视| 一区二区三区在线免费观看| 亚洲色大成网站www久久九九| 国产精品看片你懂得| 国产精品视频一二三| 国产精品女同一区二区三区| 国产精品久久久久四虎| 亚洲天堂精品视频| 亚洲国产一区二区视频| 日本v片在线高清不卡在线观看| 日韩av中文字幕一区二区| 麻豆精品一区二区av白丝在线| 韩国女主播成人在线观看| 韩国av一区二区三区四区| 国产成人亚洲综合a∨婷婷图片| 国产91高潮流白浆在线麻豆| 不卡高清视频专区| 91福利视频久久久久| 欧美欧美欧美欧美| 精品久久久久久无| 欧美激情一区二区三区全黄| 亚洲免费在线视频| 日韩福利电影在线| 国产a级毛片一区| 欧亚一区二区三区| 日韩欧美资源站| 国产欧美日韩亚州综合| 亚洲男同性恋视频| 丝袜美腿成人在线| 国产99久久精品| 欧美日韩成人综合天天影院 | 26uuu精品一区二区| 中文一区二区完整视频在线观看| 亚洲精品国久久99热| 免费观看成人鲁鲁鲁鲁鲁视频| 国产成人av一区二区三区在线观看| 99久久国产免费看| 日韩一区二区免费在线电影| 国产精品久久久久久亚洲毛片| 亚洲国产欧美另类丝袜| 国产 日韩 欧美大片| 欧美精品久久99久久在免费线 | 欧美不卡123| 亚洲综合色婷婷| 成人性生交大片| 欧美精品欧美精品系列| 国产精品久久久久久久久动漫 | 久久精品国产第一区二区三区| 成人午夜激情片| 欧美一二三四在线| 亚洲欧美另类久久久精品| 精品一区二区三区欧美| 日本高清视频一区二区| 日本一区二区三区四区| 麻豆精品久久久| 欧美日韩一级黄| 亚洲欧美日韩久久精品| 国产精品一级黄| 日韩午夜小视频| 亚洲一二三专区| 一本色道久久综合狠狠躁的推荐| 欧美xfplay| 美洲天堂一区二卡三卡四卡视频| 一本大道久久a久久精二百 | 日韩三级在线观看| 亚洲制服丝袜av| 91无套直看片红桃| 国产精品久久看| 国产成人亚洲综合a∨猫咪| 91精品国产日韩91久久久久久| 亚洲精品国久久99热| 不卡在线视频中文字幕| 国产精品午夜久久| 国产91色综合久久免费分享| 久久久亚洲精品石原莉奈| 激情小说亚洲一区| 欧美videos大乳护士334| 蜜桃视频第一区免费观看| 欧美日韩国产精品成人| 亚洲一区二区三区影院| 欧亚一区二区三区| 亚洲福利一区二区| 欧美中文字幕一区二区三区| 夜夜爽夜夜爽精品视频| 欧美亚洲尤物久久| 亚洲午夜成aⅴ人片| 欧美精品第1页| 日本亚洲电影天堂| 精品久久久久久久久久久久久久久 |