diff --git a/spring-core/src/main/java/org/springframework/core/io/buffer/DataBufferUtils.java b/spring-core/src/main/java/org/springframework/core/io/buffer/DataBufferUtils.java index 99656b4093..be9914a387 100644 --- a/spring-core/src/main/java/org/springframework/core/io/buffer/DataBufferUtils.java +++ b/spring-core/src/main/java/org/springframework/core/io/buffer/DataBufferUtils.java @@ -431,16 +431,17 @@ public abstract class DataBufferUtils { *
When there is demand on the Reactive Streams subscription, any write to + * the OutputStream is mapped to a buffer and published to the subscriber. + * If there is no demand, writes block until demand materializes. + * If the subscription is cancelled, further writes raise {@code IOException}. + * *
Note that this class has a near duplicate in
* {@link org.springframework.http.client.OutputStreamPublisher}.
*
* @author Oleh Dokuka
* @author Arjen Poutsma
* @since 6.1
+ * @param When there is demand on the Reactive Streams subscription, any write to
+ * the OutputStream is mapped to a buffer and published to the subscriber.
+ * If there is no demand, writes block until demand materializes.
+ * If the subscription is cancelled, further writes raise {@code IOException}.
+ *
* Note that this class has a near duplicate in
* {@link org.springframework.core.io.buffer.OutputStreamPublisher}.
*
@@ -92,53 +97,24 @@ final class OutputStreamPublisher
- *
- * @param outputStream the stream to write to
- * @throws IOException any thrown I/O errors will be dispatched to the
- * {@linkplain Flow.Subscriber#onError(Throwable) Subscriber}
- */
- void handle(OutputStream outputStream) throws IOException;
+ void handle(OutputStream outputStream) throws Exception;
}
/**
- * Maps bytes written to in {@link OutputStreamHandler#handle(OutputStream)}
- * to published items.
- * @param