public static class FileService.ByteRangeInput
extends java.lang.Object
implements org.jboss.netty.handler.stream.ChunkedInput
Constructor and Description |
---|
ByteRangeInput(java.io.File file,
java.lang.String contentType,
org.jboss.netty.handler.codec.http.HttpRequest request) |
ByteRangeInput(java.io.RandomAccessFile raf,
java.lang.String contentType,
org.jboss.netty.handler.codec.http.HttpRequest request) |
Modifier and Type | Method and Description |
---|---|
static boolean |
accepts(org.jboss.netty.handler.codec.http.HttpRequest request) |
void |
close() |
boolean |
hasNextChunk() |
boolean |
isEndOfInput() |
java.lang.Object |
nextChunk() |
void |
prepareNettyResponse(org.jboss.netty.handler.codec.http.HttpResponse nettyResponse) |
public ByteRangeInput(java.io.File file, java.lang.String contentType, org.jboss.netty.handler.codec.http.HttpRequest request) throws java.io.FileNotFoundException, java.io.IOException
java.io.FileNotFoundException
java.io.IOException
public ByteRangeInput(java.io.RandomAccessFile raf, java.lang.String contentType, org.jboss.netty.handler.codec.http.HttpRequest request) throws java.io.FileNotFoundException, java.io.IOException
java.io.FileNotFoundException
java.io.IOException
public void prepareNettyResponse(org.jboss.netty.handler.codec.http.HttpResponse nettyResponse)
public java.lang.Object nextChunk() throws java.lang.Exception
nextChunk
in interface org.jboss.netty.handler.stream.ChunkedInput
java.lang.Exception
public boolean hasNextChunk() throws java.lang.Exception
hasNextChunk
in interface org.jboss.netty.handler.stream.ChunkedInput
java.lang.Exception
public boolean isEndOfInput() throws java.lang.Exception
isEndOfInput
in interface org.jboss.netty.handler.stream.ChunkedInput
java.lang.Exception
public void close() throws java.lang.Exception
close
in interface org.jboss.netty.handler.stream.ChunkedInput
java.lang.Exception
public static boolean accepts(org.jboss.netty.handler.codec.http.HttpRequest request)
Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly