Package | Description |
---|---|
examples | |
io.vertx.core.file |
== Using the file system with Vert.x
The Vert.x
FileSystem object provides many operations for manipulating the file system. |
io.vertx.core.file.impl |
Modifier and Type | Method and Description |
---|---|
void |
HTTPExamples.example44(HttpClientRequest request,
AsyncFile 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.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.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 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 | Class and Description |
---|---|
class |
AsyncFileImpl
This class is optimised for performance when used on the same event loop that is was passed to the handler with.
|
Modifier and Type | Method and Description |
---|---|
protected AsyncFile |
WindowsFileSystem.doOpen(String path,
OpenOptions options,
ContextImpl context) |
protected AsyncFile |
FileSystemImpl.doOpen(String path,
OpenOptions options,
ContextImpl context) |
AsyncFile |
AsyncFileImpl.drainHandler(Handler<Void> handler) |
AsyncFile |
AsyncFileImpl.endHandler(Handler<Void> handler) |
AsyncFile |
AsyncFileImpl.exceptionHandler(Handler<Throwable> handler) |
AsyncFile |
AsyncFileImpl.flush() |
AsyncFile |
AsyncFileImpl.flush(Handler<AsyncResult<Void>> handler) |
AsyncFile |
AsyncFileImpl.handler(Handler<Buffer> handler) |
AsyncFile |
FileSystemImpl.openBlocking(String path,
OpenOptions options) |
AsyncFile |
AsyncFileImpl.pause() |
AsyncFile |
AsyncFileImpl.read(Buffer buffer,
int offset,
long position,
int length,
Handler<AsyncResult<Buffer>> handler) |
AsyncFile |
AsyncFileImpl.resume() |
AsyncFile |
AsyncFileImpl.setReadPos(long readPos) |
AsyncFile |
AsyncFileImpl.setWritePos(long writePos) |
AsyncFile |
AsyncFileImpl.setWriteQueueMaxSize(int maxSize) |
AsyncFile |
AsyncFileImpl.write(Buffer buffer) |
AsyncFile |
AsyncFileImpl.write(Buffer buffer,
long position,
Handler<AsyncResult<Void>> handler) |
Modifier and Type | Method and Description |
---|---|
FileSystem |
FileSystemImpl.open(String path,
OpenOptions options,
Handler<AsyncResult<AsyncFile>> handler) |
Copyright © 2015. All Rights Reserved.