public final class IO
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
IO.FileContext
A read access to the source file
|
Modifier and Type | Method and Description |
---|---|
static org.reactivestreams.Publisher<Buffer> |
read(java.nio.channels.ReadableByteChannel channel)
Transform a
ReadableByteChannel into a Publisher of Buffer with a max chunk size of
Buffer.SMALL_BUFFER_SIZE . |
static org.reactivestreams.Publisher<Buffer> |
read(java.nio.channels.ReadableByteChannel channel,
int chunkSize)
|
static org.reactivestreams.Publisher<Buffer> |
readFile(java.nio.file.Path path)
Read bytes as
Buffer from file specified by the Path argument with a max chunk size of
Buffer.SMALL_BUFFER_SIZE . |
static org.reactivestreams.Publisher<Buffer> |
readFile(java.nio.file.Path path,
int chunkSize)
Read bytes as
Buffer from file specified by the Path argument with a max chunkSize
Complete when channel read is negative. |
static org.reactivestreams.Publisher<Buffer> |
readFile(java.lang.String path)
Read bytes as
Buffer from file specified by the Path argument with a max chunk size of
Buffer.SMALL_BUFFER_SIZE . |
static org.reactivestreams.Publisher<Buffer> |
readFile(java.lang.String path,
int chunkSize)
Read bytes as
Buffer from file specified by the Path argument with a max chunkSize
Complete when channel read is negative. |
public static org.reactivestreams.Publisher<Buffer> read(java.nio.channels.ReadableByteChannel channel)
ReadableByteChannel
into a Publisher
of Buffer
with a max chunk size of
Buffer.SMALL_BUFFER_SIZE
.
Complete when channel read is negative. The read sequence is unique per subscriber.channel
- The Readable Channel to publishpublic static org.reactivestreams.Publisher<Buffer> read(java.nio.channels.ReadableByteChannel channel, int chunkSize)
ReadableByteChannel
into a Publisher
of Buffer
with a max chunk size of
chunkSize
.
Complete when channel read is negative. The read sequence is unique per subscriber.channel
- The Readable Channel to publishpublic static org.reactivestreams.Publisher<Buffer> readFile(java.nio.file.Path path)
Buffer
from file specified by the Path
argument with a max chunk size of
Buffer.SMALL_BUFFER_SIZE
.
Complete when channel read is negative. The read sequence is unique per subscriber.path
- the Path
locating the file to readpublic static org.reactivestreams.Publisher<Buffer> readFile(java.nio.file.Path path, int chunkSize)
Buffer
from file specified by the Path
argument with a max chunkSize
Complete when channel read is negative. The read sequence is unique per subscriber.path
- the Path
locating the file to readpublic static org.reactivestreams.Publisher<Buffer> readFile(java.lang.String path)
Buffer
from file specified by the Path
argument with a max chunk size of
Buffer.SMALL_BUFFER_SIZE
.
Complete when channel read is negative. The read sequence is unique per subscriber.path
- the absolute String path to the read filepublic static org.reactivestreams.Publisher<Buffer> readFile(java.lang.String path, int chunkSize)
Buffer
from file specified by the Path
argument with a max chunkSize
Complete when channel read is negative. The read sequence is unique per subscriber.path
- the absolute String path to the read file