Package play.mvc
Class Http.RawBuffer
- Object
-
- play.mvc.Http.RawBuffer
-
-
Constructor Summary
Constructors Constructor Description RawBuffer()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract ByteStringasBytes()abstract ByteStringasBytes(int maxLength)Returns the buffer content as a bytes array.abstract FileasFile()abstract Longsize()
-
-
-
Method Detail
-
size
public abstract Long size()
- Returns:
- the buffer size
-
asBytes
public abstract ByteString 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 ByteString asBytes()
- Returns:
- the buffer content as a bytes array
-
asFile
public abstract File asFile()
- Returns:
- the buffer content as a file
-
-