|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectcom.ozacc.mail.fetch.impl.sk_jp.HtmlPartExtractor
public class HtmlPartExtractor
text/htmlを結合した文字列を得るPartHandlerです。
| コンストラクタの概要 | |
|---|---|
HtmlPartExtractor()
|
|
| メソッドの概要 | |
|---|---|
java.lang.String |
getHtml()
|
boolean |
processPart(javax.mail.Part part,
javax.mail.internet.ContentType context)
パートに対して処理を行います。 |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| コンストラクタの詳細 |
|---|
public HtmlPartExtractor()
| メソッドの詳細 |
|---|
public boolean processPart(javax.mail.Part part,
javax.mail.internet.ContentType context)
throws javax.mail.MessagingException,
java.io.IOException
PartHandler の記述:
contextにはそのパートがmultipart/*の子パートである場合に、
そのmultipart/*のMIMEタイプが渡されます。
続けて次のパートを処理するか否かを復帰値で返してください。
message/rfc822パートの内部も走査したい場合は、実装クラス内で 以下のようにコーディングしてください。
if (part.isMimeType("message/rfc822")) {
// message/rfc822パートの処理オブジェクト
AnyHandler h = new AnyHandler();
MultipartUtility.process(part, h);
}
PartHandler 内の processPartjavax.mail.MessagingException
java.io.IOExceptionpublic java.lang.String getHtml()
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||