Package com.google.code.javax.activation

Examples of com.google.code.javax.activation.FileDataSource


     * @exception  IOException  errors related to accessing the file
     * @exception  MessagingException  message related errors
     * @since    JavaMail 1.4
     */
    public void attachFile(File file) throws IOException, MessagingException {
      FileDataSource fds = new FileDataSource(file);    
        this.setDataHandler(new DataHandler(fds));
        this.setFileName(fds.getName());
    }
View Full Code Here

TOP

Related Classes of com.google.code.javax.activation.FileDataSource

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.