-
public interface OutgoingDataStreamManager
-
-
Method Summary
Modifier and Type Method Description abstract TextStreamSenderstreamText(StreamTextOptions options)Start sending a stream of text. abstract ByteStreamSenderstreamBytes(StreamBytesOptions options)Start sending a stream of bytes. Result<TextStreamInfo>sendText(String text, StreamTextOptions options)Send text through a data stream. Result<ByteStreamInfo>sendFile(File file, StreamBytesOptions options)Send a file through a data stream. -
-
Method Detail
-
streamText
abstract TextStreamSender streamText(StreamTextOptions options)
Start sending a stream of text. Call TextStreamSender.close when finished sending.
-
streamBytes
abstract ByteStreamSender streamBytes(StreamBytesOptions options)
Start sending a stream of bytes. Call ByteStreamSender.close when finished sending.
Extension functions are available for sending bytes from sources such as InputStream or File.
-
sendText
@CheckResult() Result<TextStreamInfo> sendText(String text, StreamTextOptions options)
Send text through a data stream.
-
sendFile
@CheckResult() Result<ByteStreamInfo> sendFile(File file, StreamBytesOptions options)
Send a file through a data stream.
-
-
-
-