DataBuffers.
| Modifier and Type | Class and Description |
|---|---|
| private abstract static class | DataBufferUtils.AbstractNestedMatcher
Base class for a |
| private static class | DataBufferUtils.CompositeMatcher
Matcher that supports searching for multiple delimiters. |
| private static class | DataBufferUtils.KnuthMorrisPrattMatcher
Implementation of |
| public static interface | DataBufferUtils.Matcher
Contract to find delimiter(s) against one or more data buffers that can
be passed one at a time to the |
| private static interface | DataBufferUtils.NestedMatcher
Matcher that can be nested within |
| private static class | |
| private static class | |
| private static class | DataBufferUtils.SingleByteMatcher
Matcher for a single byte delimiter. |
| private static class | DataBufferUtils.TwoByteMatcher
Matcher with a 2 byte delimiter that does not benefit from a Knuth-Morris-Pratt suffix-prefix table. |
| private static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private static final Log | |
| private static final Consumer |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static Set | |
| pack-priv static void | |
| private static DataBufferUtils. | |
| public static Mono | Returns: a buffer that is composed of thedataBuffers argumentthe data buffers that are to be composed dataBuffers)Return a new |
| public static Mono | Returns: a buffer with the aggregated content, possibly an empty Mono if the max number of bytes to buffer is exceeded.the data buffers that are to be composed buffers, int the max number of bytes to buffer, or -1 for unlimited maxByteCount)Variant of |
| public static DataBufferUtils. | |
| public static DataBufferUtils. | |
| public static Publisher | Returns: aPublisher<DataBuffer> based on bytes written by
outputStreamHandlerinvoked when the first buffer is requested outputStreamConsumer, DataBufferFactory bufferFactory, Executor used to invoke the executor)outputStreamHandlerCreate a new |
| public static Publisher | Returns: aPublisher<DataBuffer> based on bytes written by
outputStreamHandlerinvoked when the first buffer is requested outputStreamConsumer, DataBufferFactory bufferFactory, Executor used to invoke the executor, int outputStreamHandlerminimum size of the buffer produced by the publisher chunkSize)Creates a new |
| public static Flux | Returns: a Flux of data buffers read from the given channelthe path to read bytes from path, DataBufferFactory the factory to create data buffers with bufferFactory, int the maximum size of the data buffers bufferSize, OpenOption... options)Read bytes from the given file |
| public static Flux | Returns: a Flux of data buffers read from the given channelthe resource to read from resource, DataBufferFactory the factory to create data buffers with bufferFactory, int the maximum size of the data buffers bufferSize)Read the given |
| public static Flux | Returns: a Flux of data buffers read from the given channelthe resource to read from resource, long the position to start reading from position, DataBufferFactory the factory to create data buffers with bufferFactory, int the maximum size of the data buffers bufferSize)Read the given |
| public static Flux | Returns: a Flux of data buffers read from the given channelthe supplier for the channel to read from channelSupplier, DataBufferFactory the factory to create data buffers with bufferFactory, int the maximum size of the data buffers bufferSize)Obtain a |
| public static Flux | Returns: a Flux of data buffers read from the given channelthe supplier for the channel to read from channelSupplier, long the position to start reading from position, DataBufferFactory the factory to create data buffers with bufferFactory, int the maximum size of the data buffers bufferSize)Obtain an |
| public static Flux | Returns: a Flux of data buffers read from the given channelthe supplier for the channel to read from channelSupplier, DataBufferFactory the factory to create data buffers with bufferFactory, int the maximum size of the data buffers bufferSize)Obtain a |
| public static Flux | Returns: a Flux of data buffers read from the given channelthe supplier for the input stream to read from inputStreamSupplier, DataBufferFactory the factory to create data buffers with bufferFactory, int the maximum size of the data buffers bufferSize)Obtain an |
| public static boolean | Returns: true if the buffer was released; false otherwise.the data buffer to release dataBuffer)Release the given data buffer. |
| public static Consumer | |
| public static <T extends DataBuffer> T | Returns: the retained bufferthe data buffer to retain dataBuffer)Retain the given data buffer, if it is a |
| public static <T extends DataBuffer> Flux | Returns: a flux with the remaining part of the given publisherthe publisher to filter publisher, long the maximum byte count maxByteCount)Skip buffers from the given |
| public static <T extends DataBuffer> Flux | Returns: a flux whose maximum byte count ismaxByteCountthe publisher to filter publisher, long the maximum byte count maxByteCount)Relay buffers from the given |
| public static <T extends DataBuffer> T | |
| public static Flux | Returns: a Flux containing the same buffers as insource, that
starts the writing process when subscribed to, and that publishes any
writing errors and the completion signalthe stream of data buffers to be written source, OutputStream the output stream to write to outputStream)Write the given stream of |
| public static Flux | Returns: a Flux containing the same buffers as insource, that
starts the writing process when subscribed to, and that publishes any
writing errors and the completion signalthe stream of data buffers to be written source, WritableByteChannel the channel to write to channel)Write the given stream of |
| public static Flux | Returns: a Flux containing the same buffers as insource, that
starts the writing process when subscribed to, and that publishes any
writing errors and the completion signalthe stream of data buffers to be written source, AsynchronousFileChannel the channel to write to channel)Write the given stream of |
| public static Flux | Returns: a flux containing the same buffers as insource, that
starts the writing process when subscribed to, and that publishes any
writing errors and the completion signalthe stream of data buffers to be written source, AsynchronousFileChannel the channel to write to channel, long the file position where writing is to begin; must be non-negative position)Write the given stream of |
| public static Mono | Returns: aMono that indicates completion or errorthe stream of data buffers to be written source, Path the path to the file destination, OpenOption... the options specifying how the file is opened options)Write the given stream of |