public class TextStreamUtil extends Object
| Constructor and Description |
|---|
TextStreamUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
parseEventStream(InputStream inputStream,
org.reactivestreams.Subscriber<? super ServerSentEvent> subscriber)
Deprecated.
|
static org.reactivestreams.Publisher<String> |
parseLineStream(HttpResponse response)
解析文件行流
|
static void |
parseLineStream(HttpResponse response,
org.reactivestreams.Subscriber<? super String> subscriber)
解析文件行流
|
static org.reactivestreams.Publisher<String> |
parseLineStream(InputStream inputStream)
解析文件行流
|
static void |
parseLineStream(InputStream inputStream,
Charset charset,
org.reactivestreams.Subscriber<? super String> subscriber)
解析文件行流
|
static org.reactivestreams.Publisher<ServerSentEvent> |
parseSseStream(HttpResponse response)
解析服务推送事件流
|
static void |
parseSseStream(HttpResponse response,
org.reactivestreams.Subscriber<? super ServerSentEvent> subscriber)
解析服务推送事件流
|
static org.reactivestreams.Publisher<ServerSentEvent> |
parseSseStream(InputStream inputStream)
解析服务推送事件流
|
static void |
parseSseStream(InputStream inputStream,
Charset charset,
org.reactivestreams.Subscriber<? super ServerSentEvent> subscriber)
解析服务推送事件流
|
static void |
parseTextStream(InputStream inputStream,
org.reactivestreams.Subscriber<? super String> subscriber)
Deprecated.
|
@Deprecated public static void parseTextStream(InputStream inputStream, org.reactivestreams.Subscriber<? super String> subscriber) throws IOException
parseLineStream(InputStream, Charset, Subscriber)inputStream - 输入流subscriber - 订阅者IOExceptionpublic static org.reactivestreams.Publisher<String> parseLineStream(InputStream inputStream)
inputStream - 输入流public static org.reactivestreams.Publisher<String> parseLineStream(HttpResponse response)
response - 响应public static void parseLineStream(HttpResponse response, org.reactivestreams.Subscriber<? super String> subscriber)
response - 响应public static void parseLineStream(InputStream inputStream, Charset charset, org.reactivestreams.Subscriber<? super String> subscriber)
inputStream - 输入流subscriber - 订阅者@Deprecated public static void parseEventStream(InputStream inputStream, org.reactivestreams.Subscriber<? super ServerSentEvent> subscriber) throws IOException
parseSseStream(InputStream, Charset, Subscriber)inputStream - 输入流subscriber - 订阅者IOExceptionpublic static org.reactivestreams.Publisher<ServerSentEvent> parseSseStream(InputStream inputStream)
inputStream - 输入流public static org.reactivestreams.Publisher<ServerSentEvent> parseSseStream(HttpResponse response)
response - 响应public static void parseSseStream(HttpResponse response, org.reactivestreams.Subscriber<? super ServerSentEvent> subscriber)
response - 响应public static void parseSseStream(InputStream inputStream, Charset charset, org.reactivestreams.Subscriber<? super ServerSentEvent> subscriber)
inputStream - 输入流subscriber - 订阅者Copyright © 2025. All rights reserved.