From 9980a25f7b60a0a499d624e8ac3b7e9e2fd85c7f Mon Sep 17 00:00:00 2001 From: Trustin Lee Date: Fri, 19 Feb 2010 04:37:36 +0000 Subject: [PATCH] Reverted back for backward compatibility --- .../netty/example/http/file/HttpStaticFileServerHandler.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/jboss/netty/example/http/file/HttpStaticFileServerHandler.java b/src/main/java/org/jboss/netty/example/http/file/HttpStaticFileServerHandler.java index 58bf9c8c8d..0b587df5d2 100644 --- a/src/main/java/org/jboss/netty/example/http/file/HttpStaticFileServerHandler.java +++ b/src/main/java/org/jboss/netty/example/http/file/HttpStaticFileServerHandler.java @@ -40,7 +40,7 @@ import org.jboss.netty.handler.codec.http.DefaultHttpResponse; import org.jboss.netty.handler.codec.http.HttpRequest; import org.jboss.netty.handler.codec.http.HttpResponse; import org.jboss.netty.handler.codec.http.HttpResponseStatus; -import org.jboss.netty.handler.stream.ChunkedOioFile; +import org.jboss.netty.handler.stream.ChunkedFile; import org.jboss.netty.util.CharsetUtil; /** @@ -91,7 +91,7 @@ public class HttpStaticFileServerHandler extends SimpleChannelUpstreamHandler { ch.write(response); // Write the content. - ChannelFuture writeFuture = ch.write(new ChunkedOioFile(raf, 0, fileLength, 8192)); + ChannelFuture writeFuture = ch.write(new ChunkedFile(raf, 0, fileLength, 8192)); // Decide whether to close the connection or not. if (!isKeepAlive(request)) {