public abstract static class Results.StringChunks extends Results.Chunks<java.lang.String>
Results.Chunks.Out<A>
Constructor and Description |
---|
StringChunks() |
StringChunks(play.api.mvc.Codec codec) |
StringChunks(java.lang.String codec) |
Modifier and Type | Method and Description |
---|---|
static Results.StringChunks |
whenReady(play.api.mvc.Codec codec,
F.Callback<Results.Chunks.Out<java.lang.String>> callback)
Creates a StringChunks.
|
static Results.StringChunks |
whenReady(F.Callback<Results.Chunks.Out<java.lang.String>> callback)
Creates a StringChunks.
|
static Results.StringChunks |
whenReady(java.lang.String codec,
F.Callback<Results.Chunks.Out<java.lang.String>> callback)
Creates a StringChunks.
|
onReady
public StringChunks()
public StringChunks(java.lang.String codec)
public StringChunks(play.api.mvc.Codec codec)
public static Results.StringChunks whenReady(F.Callback<Results.Chunks.Out<java.lang.String>> callback)
onReady
method is
implemented using the specified Callback<Chunks.Out<String>>
.
Uses UTF-8 by default.callback
- the callback used to implement onReadyjava.lang.NullPointerException
- if the specified callback is nullpublic static Results.StringChunks whenReady(java.lang.String codec, F.Callback<Results.Chunks.Out<java.lang.String>> callback)
onReady
method is
implemented using the specified Callback<Chunks.Out<String>>
.codec
- the Codec charset usedcallback
- the callback used to implement onReadyjava.lang.NullPointerException
- if the specified callback is nullpublic static Results.StringChunks whenReady(play.api.mvc.Codec codec, F.Callback<Results.Chunks.Out<java.lang.String>> callback)
onReady
method is
implemented using the specified Callback<Chunks.Out<String>>
.codec
- the Codec usedcallback
- the callback used to implement onReadyjava.lang.NullPointerException
- if the specified callback is null