Code example for InputStream

Methods: skip

        this(saveStreamToFile(content, file));
     * Create a MimeBodyPart backed by file, with the headers 
     * given in headers and body content taken from the stream body. 
     * @param headers headers for the body part. 
     * @param body internal content for the body part. 
     * @param file backing file to use. 
     * @throws MessagingException if the body part can't be produced. 
     * @throws IOException if there is an issue reading stream or writing to file. 
    public FileBackedMimeBodyPart( 
        InternetHeaders headers,
        InputStream body,
        File file)
        throws MessagingException, IOException