接口 javax.activation.DataSource
的使用

使用 DataSource 的软件包
com.sun.mail.dsn Support for creating and parsing Delivery Status Notifications. 
com.sun.mail.handlers   
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. 
javax.mail.util Utility classes. 
 

com.sun.mail.dsnDataSource 的使用
 

参数类型为 DataSourcecom.sun.mail.dsn 中的方法
 Object text_rfc822headers.getContent(DataSource ds)
           
 Object multipart_report.getContent(DataSource ds)
          Return the content.
 Object message_deliverystatus.getContent(DataSource ds)
          Return the content.
 Object text_rfc822headers.getTransferData(DataFlavor df, DataSource ds)
          Return the Transfer Data of type DataFlavor from InputStream.
 Object multipart_report.getTransferData(DataFlavor df, DataSource ds)
          Return the Transfer Data of type DataFlavor from InputStream.
 Object message_deliverystatus.getTransferData(DataFlavor df, DataSource ds)
          return the Transfer Data of type DataFlavor from InputStream
 

参数类型为 DataSourcecom.sun.mail.dsn 中的构造方法
MultipartReport(DataSource ds)
          Constructs a MultipartReport object and its bodyparts from the given DataSource.
 

com.sun.mail.handlersDataSource 的使用
 

参数类型为 DataSourcecom.sun.mail.handlers 中的方法
 Object text_plain.getContent(DataSource ds)
           
 Object multipart_mixed.getContent(DataSource ds)
          Return the content.
 Object message_rfc822.getContent(DataSource ds)
          Return the content.
 Object image_gif.getContent(DataSource ds)
           
 Object text_plain.getTransferData(DataFlavor df, DataSource ds)
          Return the Transfer Data of type DataFlavor from InputStream.
 Object multipart_mixed.getTransferData(DataFlavor df, DataSource ds)
          Return the Transfer Data of type DataFlavor from InputStream.
 Object message_rfc822.getTransferData(DataFlavor df, DataSource ds)
          return the Transfer Data of type DataFlavor from InputStream
 Object image_gif.getTransferData(DataFlavor df, DataSource ds)
          Return the Transfer Data of type DataFlavor from InputStream.
 

com.sun.mail.imapDataSource 的使用
 

实现 DataSourcecom.sun.mail.imap 中的类
 class IMAPMultipartDataSource
          This class
 

javax.activationDataSource 的使用
 

实现 DataSourcejavax.activation 中的类
 class FileDataSource
           
 class URLDataSource
           
 

返回 DataSourcejavax.activation 中的方法
 DataSource DataHandler.getDataSource()
           
 

参数类型为 DataSourcejavax.activation 中的方法
 DataContentHandler CommandMap.createDataContentHandler(String mimeType, DataSource ds)
          Locate a DataContentHandler for the given mime type.
 CommandInfo[] CommandMap.getAllCommands(String mimeType, DataSource ds)
          Get the entire command set for the given mimetype, as modified by the DataSource.
 CommandInfo CommandMap.getCommand(String mimeType, String cmdName, DataSource ds)
          Get the default command implementation for a given mimeType/DataSource combo.
 Object DataContentHandler.getContent(DataSource ds)
           
 CommandInfo[] CommandMap.getPreferredCommands(String mimeType, DataSource ds)
          Get the preferred commands for the given mimetype, as modified by the DataSource.
 Object DataContentHandler.getTransferData(DataFlavor df, DataSource ds)
           
 

参数类型为 DataSourcejavax.activation 中的构造方法
DataHandler(DataSource ds)
           
 

javax.mailDataSource 的使用
 

javax.mailDataSource 的子接口
 interface MultipartDataSource
          MultipartDataSource is a DataSource that contains body parts.
 

javax.mail.internetDataSource 的使用
 

实现 DataSourcejavax.mail.internet 中的类
 class MimePartDataSource
          A utility class that implements a DataSource out of a MimePart.
 

声明为 DataSourcejavax.mail.internet 中的字段
protected  DataSource MimeMultipart.ds
          The DataSource supplying our InputStream.
 

参数类型为 DataSourcejavax.mail.internet 中的方法
static String MimeUtility.getEncoding(DataSource ds)
          Get the content-transfer-encoding that should be applied to the input stream of this datasource, to make it mailsafe.
 

参数类型为 DataSourcejavax.mail.internet 中的构造方法
MimeMultipart(DataSource ds)
          Constructs a MimeMultipart object and its bodyparts from the given DataSource.
 

javax.mail.utilDataSource 的使用
 

实现 DataSourcejavax.mail.util 中的类
 class ByteArrayDataSource
          A DataSource backed by a byte array.
 



Copyright © 2013. All Rights Reserved.