c

vertices.core

VertxAsyncFileOps

implicit final class VertxAsyncFileOps extends AnyVal

Linear Supertypes
AnyVal, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. VertxAsyncFileOps
  2. AnyVal
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new VertxAsyncFileOps(target: AsyncFile)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##(): Int
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def closeL(): Task[Unit]

    Close the file.

    Close the file. The actual close happens asynchronously. The handler will be called when the close is complete, or an error occurs.

  6. def endL(): Task[Unit]

    Close the file, see #close(Handler).

  7. def endL(data: Buffer): Task[Unit]

    Same as #end(T) but with an handler called when the operation completes

  8. def flushL(): Task[Unit]

    Same as #flush but the handler will be called when the flush is complete or if an error occurs

  9. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  10. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  11. def pipeToL(dst: WriteStream[Buffer]): Task[Unit]

    Pipe this ReadStream to the WriteStream.

    Pipe this ReadStream to the WriteStream.

    Elements emitted by this stream will be written to the write stream until this stream ends or fails.

    Once this stream has ended or failed, the write stream will be ended and the handler will be called with the result.

    dst

    the destination write stream

  12. def readL(buffer: Buffer, offset: Int, position: Long, length: Int): Task[Buffer]

    Reads length bytes of data from the file at position position in the file, asynchronously.

    Reads length bytes of data from the file at position position in the file, asynchronously.

    The read data will be written into the specified Buffer buffer at position offset.

    If data is read past the end of the file then zero bytes will be read.

    When multiple reads are invoked on the same file there are no guarantees as to order in which those reads actually occur.

    The handler will be called when the close is complete, or if an error occurs.

    buffer

    the buffer to read into

    offset

    the offset into the buffer where the data will be read

    position

    the position in the file where to start reading

    length

    the number of bytes to read

    returns

    a reference to this, so the API can be used fluently

  13. val target: AsyncFile
  14. def toString(): String
    Definition Classes
    Any
  15. def writeL(buffer: Buffer, position: Long): Task[Unit]

    Write a io.vertx.core.buffer.Buffer to the file at position position in the file, asynchronously.

    Write a io.vertx.core.buffer.Buffer to the file at position position in the file, asynchronously.

    If position lies outside of the current size of the file, the file will be enlarged to encompass it.

    When multiple writes are invoked on the same file there are no guarantees as to order in which those writes actually occur

    The handler will be called when the write is complete, or if an error occurs.

    buffer

    the buffer to write

    position

    the position in the file to write it at

    returns

    a reference to this, so the API can be used fluently

  16. def writeL(data: Buffer): Task[Unit]

    Same as #write(Buffer) but with an handler called when the operation completes

Inherited from AnyVal

Inherited from Any

Ungrouped