Packages

final class AsynchronousFileChannel extends Channel

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AsynchronousFileChannel
  2. Channel
  3. IOCloseable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new AsynchronousFileChannel(channel: java.nio.channels.AsynchronousFileChannel)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. val channel: java.nio.channels.AsynchronousFileChannel
    Attributes
    protected
    Definition Classes
    AsynchronousFileChannelChannel
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  7. final def close(implicit trace: Trace): IO[IOException, Unit]

    Closes this channel.

    Closes this channel.

    Definition Classes
    ChannelIOCloseable
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  11. def force(metaData: Boolean)(implicit trace: Trace): IO[IOException, Unit]
  12. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. final def isOpen(implicit trace: Trace): UIO[Boolean]

    Tells whether or not this channel is open.

    Tells whether or not this channel is open.

    Definition Classes
    Channel
  16. def lock(position: Long = 0L, size: Long = Long.MaxValue, shared: Boolean = false)(implicit trace: Trace): IO[IOException, FileLock]
  17. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  19. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. def read(dst: ByteBuffer, position: Long)(implicit trace: Trace): IO[IOException, Int]

    Reads data from this channel into buffer, returning the number of bytes read.

    Reads data from this channel into buffer, returning the number of bytes read.

    Fails with java.io.EOFException if end-of-stream is reached.

    position

    The file position at which the transfer is to begin; must be non-negative

  21. def readChunk(capacity: Int, position: Long)(implicit trace: Trace): IO[IOException, Chunk[Byte]]

    Reads data from this channel as a Chunk.

    Reads data from this channel as a Chunk.

    Fails with java.io.EOFException if end-of-stream is reached.

    position

    The file position at which the transfer is to begin; must be non-negative

  22. def sink(position: Long, bufferConstruct: UIO[ByteBuffer])(implicit trace: Trace): ZSink[Any, IOException, Byte, Byte, Long]

    A sink that will write all the bytes it receives to this channel.

    A sink that will write all the bytes it receives to this channel. The sink's result is the number of bytes written.

    position

    The position in the file the sink will write to.

    bufferConstruct

    Optional, overrides how to construct the buffer used to transfer bytes received by the sink to this channel. By default a heap buffer is used, but a direct buffer will usually perform better.

  23. def sink(position: Long)(implicit trace: Trace): ZSink[Any, IOException, Byte, Byte, Long]
  24. def size(implicit trace: Trace): IO[IOException, Long]
  25. def stream(position: Long, bufferConstruct: UIO[ByteBuffer])(implicit trace: Trace): Stream[IOException, Byte]

    A ZStream that reads from this channel.

    A ZStream that reads from this channel.

    The stream terminates without error if the channel reaches end-of-stream.

    position

    The position in the file the stream will read from.

    bufferConstruct

    Optional, overrides how to construct the buffer used to transfer bytes read from this channel into the stream. By default a heap buffer is used, but a direct buffer will usually perform better.

  26. def stream(position: Long)(implicit trace: Trace): Stream[IOException, Byte]
  27. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  28. def toString(): String
    Definition Classes
    AnyRef → Any
  29. def truncate(size: Long)(implicit trace: Trace): IO[IOException, Unit]
  30. def tryLock(position: Long = 0L, size: Long = Long.MaxValue, shared: Boolean = false)(implicit trace: Trace): IO[IOException, FileLock]
  31. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  32. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  33. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  34. def write(src: ByteBuffer, position: Long)(implicit trace: Trace): IO[IOException, Int]
  35. def writeChunk(src: Chunk[Byte], position: Long)(implicit trace: Trace): IO[IOException, Unit]

    Writes a chunk of bytes at a specified position in the file.

    Writes a chunk of bytes at a specified position in the file.

    More than one write operation may be performed to write the entire chunk.

    src

    The bytes to write.

    position

    Where in the file to write.

Inherited from Channel

Inherited from IOCloseable

Inherited from AnyRef

Inherited from Any

Ungrouped