Package org.apache.james.util.stream

Examples of org.apache.james.util.stream.CombinedInputStream


        // check if we can use optimized operations
        if (tryCast && m instanceof MimeMessageWrapper) {
            in = ((MimeMessageWrapper) m).getMessageInputStream();
        } else {
            try {
                in = new CombinedInputStream(new InputStream[] { new InternetHeadersInputStream(message.getAllHeaderLines()), message.getRawInputStream() });
            } catch (MessagingException e) {
                // its possible that MimeMessage.getRawInputStream throws an exception when try to access the method on a self constructed MimeMessage.
                // so try to read it in memory
                ByteArrayOutputStream out = new ByteArrayOutputStream();
                try {
View Full Code Here

TOP

Related Classes of org.apache.james.util.stream.CombinedInputStream

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.