play.mvc
Class Http.RawBuffer

java.lang.Object
  extended by play.mvc.Http.RawBuffer
Enclosing class:
Http

public abstract static class Http.RawBuffer
extends java.lang.Object

Handle the request body a raw bytes data.


Constructor Summary
Http.RawBuffer()
           
 
Method Summary
abstract  byte[] asBytes()
          Returns the buffer content as a bytes array.
abstract  byte[] asBytes(int maxLength)
          Returns the buffer content as a bytes array.
abstract  java.io.File asFile()
          Returns the buffer content as File.
abstract  java.lang.Long size()
          Buffer size.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Http.RawBuffer

public Http.RawBuffer()
Method Detail

size

public abstract java.lang.Long size()
Buffer size.


asBytes

public abstract byte[] asBytes(int maxLength)
Returns the buffer content as a bytes array.

Parameters:
maxLength - The max length allowed to be stored in memory.
Returns:
null if the content is too big to fit in memory.

asBytes

public abstract byte[] asBytes()
Returns the buffer content as a bytes array.


asFile

public abstract java.io.File asFile()
Returns the buffer content as File.