Package | Description |
---|---|
io.vertx.core.file | |
io.vertx.core.http | |
io.vertx.reactivex.core.file | |
io.vertx.rxjava.core.file |
Modifier and Type | Method and Description |
---|---|
AsyncFile |
AsyncFile.drainHandler(Handler<Void> handler) |
AsyncFile |
AsyncFile.endHandler(Handler<Void> endHandler) |
AsyncFile |
AsyncFile.exceptionHandler(Handler<Throwable> handler) |
AsyncFile |
AsyncFile.fetch(long amount) |
AsyncFile |
AsyncFile.flush()
Flush any writes made to this file to underlying persistent storage.
|
AsyncFile |
AsyncFile.flush(Handler<AsyncResult<Void>> handler)
Same as
flush() but the handler will be called when the flush is complete or if an error occurs |
AsyncFile |
AsyncFile.handler(Handler<Buffer> handler) |
AsyncFile |
FileSystem.openBlocking(String path,
OpenOptions options)
Blocking version of
FileSystem.open(String, io.vertx.core.file.OpenOptions, Handler) |
AsyncFile |
AsyncFile.pause() |
AsyncFile |
AsyncFile.read(Buffer buffer,
int offset,
long position,
int length,
Handler<AsyncResult<Buffer>> handler)
Reads
length bytes of data from the file at position position in the file, asynchronously. |
AsyncFile |
AsyncFile.resume() |
AsyncFile |
AsyncFile.setReadBufferSize(int readBufferSize)
Sets the buffer size that will be used to read the data from the file.
|
AsyncFile |
AsyncFile.setReadLength(long readLength)
Sets the number of bytes that will be read when using the file as a
ReadStream . |
AsyncFile |
AsyncFile.setReadPos(long readPos)
Sets the position from which data will be read from when using the file as a
ReadStream . |
AsyncFile |
AsyncFile.setWritePos(long writePos)
Sets the position from which data will be written when using the file as a
WriteStream . |
AsyncFile |
AsyncFile.setWriteQueueMaxSize(int maxSize) |
AsyncFile |
AsyncFile.write(Buffer data) |
AsyncFile |
AsyncFile.write(Buffer data,
Handler<AsyncResult<Void>> handler)
Same as
write(Buffer) but with an handler called when the operation completes |
AsyncFile |
AsyncFile.write(Buffer buffer,
long position,
Handler<AsyncResult<Void>> handler)
Write a
Buffer to the file at position position in the file, asynchronously. |
Modifier and Type | Method and Description |
---|---|
FileSystem |
FileSystem.open(String path,
OpenOptions options,
Handler<AsyncResult<AsyncFile>> handler)
Open the file represented by
path , asynchronously. |
Modifier and Type | Method and Description |
---|---|
AsyncFile |
HttpServerFileUpload.file() |
Modifier and Type | Method and Description |
---|---|
AsyncFile |
AsyncFile.getDelegate() |
Modifier and Type | Method and Description |
---|---|
static AsyncFile |
AsyncFile.newInstance(AsyncFile arg) |
Constructor and Description |
---|
AsyncFile(AsyncFile delegate) |
Modifier and Type | Method and Description |
---|---|
AsyncFile |
AsyncFile.getDelegate() |
Modifier and Type | Method and Description |
---|---|
static AsyncFile |
AsyncFile.newInstance(AsyncFile arg) |
Constructor and Description |
---|
AsyncFile(AsyncFile delegate) |
Copyright © 2023 Eclipse. All rights reserved.