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 e52e711a001..5394ba91990 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 @@ -63,26 +63,6 @@ public abstract class DataBufferUtils { // Reading //--------------------------------------------------------------------- - /** - * Read the given {@code InputStream} into a read-once {@code Flux} of - * {@code DataBuffer}s. Closes the input stream when the flux is terminated. - *
The resulting {@code Flux} can only be subscribed to once. See
- * {@link #readInputStream(Callable, DataBufferFactory, int)} for a variant that supports
- * multiple subscriptions.
- * @param inputStream the input stream to read from
- * @param dataBufferFactory the factory to create data buffers with
- * @param bufferSize the maximum size of the data buffers
- * @return a flux of data buffers read from the given channel
- * @deprecated as of Spring 5.0.3, in favor of
- * {@link #readInputStream(Callable, DataBufferFactory, int)}, to be removed in Spring 5.1
- */
- @Deprecated
- public static Flux The resulting {@code Flux} can only be subscribed to once. See
- * {@link #readByteChannel(Callable, DataBufferFactory, int)} for a variant that supports
- * multiple subscriptions.
- * @param channel the channel to read from
- * @param dataBufferFactory the factory to create data buffers with
- * @param bufferSize the maximum size of the data buffers
- * @return a flux of data buffers read from the given channel
- * @deprecated as of Spring 5.0.3, in favor of
- * {@link #readByteChannel(Callable, DataBufferFactory, int)}, to be removed in Spring 5.1
- */
- @Deprecated
- public static Flux The resulting {@code Flux} can only be subscribed to once. See
- * {@link #readAsynchronousFileChannel(Callable, DataBufferFactory, int)} for a variant that
- * supports multiple subscriptions.
- * @param channel the channel to read from
- * @param dataBufferFactory the factory to create data buffers with
- * @param bufferSize the maximum size of the data buffers
- * @return a flux of data buffers read from the given channel
- * @deprecated as of Spring 5.0.3, in favor of
- * {@link #readAsynchronousFileChannel(Callable, DataBufferFactory, int)}, to be removed in
- * Spring 5.1
- */
- @Deprecated
- public static Flux The resulting {@code Flux} can only be subscribed to once. See
- * {@link #readAsynchronousFileChannel(Callable, long, DataBufferFactory, int)} for a variant
- * that supports multiple subscriptions.
- * @param channel the channel to read from
- * @param position the position to start reading from
- * @param dataBufferFactory the factory to create data buffers with
- * @param bufferSize the maximum size of the data buffers
- * @return a flux of data buffers read from the given channel
- * @deprecated as of Spring 5.0.3, in favor of
- * {@link #readAsynchronousFileChannel(Callable, long, DataBufferFactory, int)}, to be removed
- * in Spring 5.1
- */
- @Deprecated
- public static Flux