Package play.server

Class ByteRangeInput

  • All Implemented Interfaces:
    org.jboss.netty.handler.stream.ChunkedInput

    public class ByteRangeInput
    extends java.lang.Object
    implements org.jboss.netty.handler.stream.ChunkedInput
    • Constructor Summary

      Constructors 
      Constructor Description
      ByteRangeInput​(java.lang.String file, java.io.RandomAccessFile raf, java.lang.String contentType, org.jboss.netty.handler.codec.http.HttpRequest request)  
    • Constructor Detail

      • ByteRangeInput

        public ByteRangeInput​(java.lang.String file,
                              java.io.RandomAccessFile raf,
                              java.lang.String contentType,
                              org.jboss.netty.handler.codec.http.HttpRequest request)
                       throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • prepareNettyResponse

        public void prepareNettyResponse​(org.jboss.netty.handler.codec.http.HttpResponse nettyResponse)
      • nextChunk

        public java.lang.Object nextChunk()
        Specified by:
        nextChunk in interface org.jboss.netty.handler.stream.ChunkedInput
      • hasNextChunk

        public boolean hasNextChunk()
        Specified by:
        hasNextChunk in interface org.jboss.netty.handler.stream.ChunkedInput
      • isEndOfInput

        public boolean isEndOfInput()
        Specified by:
        isEndOfInput in interface org.jboss.netty.handler.stream.ChunkedInput
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface org.jboss.netty.handler.stream.ChunkedInput
        Throws:
        java.io.IOException
      • accepts

        public static boolean accepts​(org.jboss.netty.handler.codec.http.HttpRequest request)