Package play.mvc
Class Http.RawBuffer
java.lang.Object
play.mvc.Http.RawBuffer
- Enclosing class:
- Http
Handle the request body a raw bytes data.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract ByteStringasBytes()abstract ByteStringasBytes(int maxLength) Returns the buffer content as a bytes array.abstract FileasFile()abstract Longsize()
-
Constructor Details
-
RawBuffer
public RawBuffer()
-
-
Method Details
-
size
- Returns:
- the buffer size
-
asBytes
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
- Returns:
- the buffer content as a bytes array
-
asFile
- Returns:
- the buffer content as a file
-