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