private static void setDataHandler()

in src/main/java/org/apache/sling/commons/messaging/mail/internal/SimpleMessageBuilder.java [519:523]


    private static void setDataHandler(final MimeBodyPart part, final InputStream inputStream, final String type) throws MessagingException, IOException {
        final DataSource source = new ByteArrayDataSource(inputStream, type);
        final DataHandler handler = new DataHandler(source);
        part.setDataHandler(handler);
    }