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