Source
instead.public abstract static class Results.StringChunks extends Results.Chunks<java.lang.String>
Results.Chunks.Out<A>
Constructor and Description |
---|
StringChunks()
Deprecated.
|
StringChunks(play.api.mvc.Codec codec)
Deprecated.
|
StringChunks(java.lang.String codec)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static Results.StringChunks |
whenReady(play.api.mvc.Codec codec,
java.util.function.Consumer<Results.Chunks.Out<java.lang.String>> callback)
Deprecated.
Creates a StringChunks.
|
static Results.StringChunks |
whenReady(java.util.function.Consumer<Results.Chunks.Out<java.lang.String>> callback)
Deprecated.
Creates a StringChunks.
|
static Results.StringChunks |
whenReady(java.lang.String codec,
java.util.function.Consumer<Results.Chunks.Out<java.lang.String>> callback)
Deprecated.
Creates a StringChunks.
|
onReady
public StringChunks()
public StringChunks(java.lang.String codec)
public StringChunks(play.api.mvc.Codec codec)
public static Results.StringChunks whenReady(java.util.function.Consumer<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, java.util.function.Consumer<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, java.util.function.Consumer<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