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.FileNotFoundExceptionjava.io.IOExceptionpublic 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.FileNotFoundExceptionjava.io.IOExceptionpublic 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.ChunkedInputjava.lang.Exceptionpublic boolean hasNextChunk()
throws java.lang.Exception
hasNextChunk in interface org.jboss.netty.handler.stream.ChunkedInputjava.lang.Exceptionpublic boolean isEndOfInput()
throws java.lang.Exception
isEndOfInput in interface org.jboss.netty.handler.stream.ChunkedInputjava.lang.Exceptionpublic void close()
throws java.lang.Exception
close in interface org.jboss.netty.handler.stream.ChunkedInputjava.lang.Exceptionpublic static boolean accepts(org.jboss.netty.handler.codec.http.HttpRequest request)
Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly