Examples of DefaultFileRegion


Examples of org.jboss.netty.channel.DefaultFileRegion

                   // Zero-copy is only possible if no SSL/TLS  and no COMPRESS is in place
                //
                // See JAMES-1305 and JAMES-1306
                ChannelPipeline cp = channel.getPipeline();
                if (zeroCopy && cp.get(SslHandler.class) == null && cp.get(ZlibEncoder.class) == null ) {
                    channel.write(new DefaultFileRegion(fc, fc.position(), literal.size()));
                } else {
                    channel.write(new ChunkedNioFile(fc, 8192));
                }
            } else {
                channel.write(new ChunkedStream(literal.getInputStream()));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.