类 javax.activation.DataHandler
的使用

使用 DataHandler 的软件包
com.sun.mail.dsn Support for creating and parsing Delivery Status Notifications. 
com.sun.mail.imap An IMAP protocol provider for the JavaMail API that provides access to an IMAP message store. 
javax.activation   
javax.mail The JavaMailTM API provides classes that model a mail system. 
javax.mail.internet Classes specific to Internet mail systems. 
 

com.sun.mail.dsnDataHandler 的使用
 

参数类型为 DataHandlercom.sun.mail.dsn 中的方法
 void MessageHeaders.setDataHandler(DataHandler dh)
          Can't set any content for a MessageHeaders object.
 

com.sun.mail.imapDataHandler 的使用
 

返回 DataHandlercom.sun.mail.imap 中的方法
 DataHandler IMAPMessage.getDataHandler()
          Get the DataHandler object for this message.
 DataHandler IMAPBodyPart.getDataHandler()
           
 

参数类型为 DataHandlercom.sun.mail.imap 中的方法
 void IMAPMessage.setDataHandler(DataHandler content)
           
 void IMAPBodyPart.setDataHandler(DataHandler content)
           
 

javax.activationDataHandler 的使用
 

参数类型为 DataHandlerjavax.activation 中的方法
 Object CommandInfo.getCommandObject(DataHandler dh, ClassLoader loader)
          Instantiate and return a command JavaBean.
 void CommandObject.setCommandContext(String verb, DataHandler dh)
           
 

javax.mailDataHandler 的使用
 

返回 DataHandlerjavax.mail 中的方法
 DataHandler Part.getDataHandler()
          Return a DataHandler for the content within this part.
 

参数类型为 DataHandlerjavax.mail 中的方法
 void Part.setDataHandler(DataHandler dh)
          This method provides the mechanism to set this part's content.
 

javax.mail.internetDataHandler 的使用
 

声明为 DataHandlerjavax.mail.internet 中的字段
protected  DataHandler MimeMessage.dh
          The DataHandler object representing this Message's content.
protected  DataHandler MimeBodyPart.dh
          The DataHandler object representing this Part's content.
 

返回 DataHandlerjavax.mail.internet 中的方法
 DataHandler MimeMessage.getDataHandler()
          Return a DataHandler for this Message's content.
 DataHandler MimeBodyPart.getDataHandler()
          Return a DataHandler for this body part's content.
 

参数类型为 DataHandlerjavax.mail.internet 中的方法
static String MimeUtility.getEncoding(DataHandler dh)
          Same as getEncoding(DataSource) except that instead of reading the data from an InputStream it uses the writeTo method to examine the data.
 void MimeMessage.setDataHandler(DataHandler dh)
          This method provides the mechanism to set this part's content.
 void MimeBodyPart.setDataHandler(DataHandler dh)
          This method provides the mechanism to set this body part's content.
 



Copyright © 2013. All Rights Reserved.