Class/Object

zio.nio.channels

AsynchronousFileChannel

Related Docs: object AsynchronousFileChannel | package channels

Permalink

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. All

Instance Constructors

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

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. val channel: java.nio.channels.AsynchronousFileChannel

    Permalink
    Attributes
    protected
    Definition Classes
    AsynchronousFileChannelChannel
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def close(implicit trace: ZTraceElement): IO[IOException, Unit]

    Permalink

    Closes this channel.

    Closes this channel.

    Definition Classes
    ChannelIOCloseable
  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. def force(metaData: Boolean)(implicit trace: ZTraceElement): IO[IOException, Unit]

    Permalink
  12. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  13. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  14. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  15. final def isOpen(implicit trace: ZTraceElement): UIO[Boolean]

    Permalink

    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: ZTraceElement): IO[IOException, FileLock]

    Permalink
  17. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. def read(dst: ByteBuffer, position: Long)(implicit trace: ZTraceElement): IO[IOException, Int]

    Permalink

    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: ZTraceElement): IO[IOException, Chunk[Byte]]

    Permalink

    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: ZTraceElement): ZSink[Any, IOException, Byte, Byte, Long]

    Permalink

    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: ZTraceElement): ZSink[Any, IOException, Byte, Byte, Long]

    Permalink
  24. def size(implicit trace: ZTraceElement): IO[IOException, Long]

    Permalink
  25. def stream(position: Long, bufferConstruct: UIO[ByteBuffer])(implicit trace: ZTraceElement): Stream[IOException, Byte]

    Permalink

    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: ZTraceElement): Stream[IOException, Byte]

    Permalink
  27. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  28. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  29. def truncate(size: Long)(implicit trace: ZTraceElement): IO[IOException, Unit]

    Permalink
  30. def tryLock(position: Long = 0L, size: Long = Long.MaxValue, shared: Boolean = false)(implicit trace: ZTraceElement): IO[IOException, FileLock]

    Permalink
  31. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. def write(src: ByteBuffer, position: Long)(implicit trace: ZTraceElement): IO[IOException, Int]

    Permalink
  35. def writeChunk(src: Chunk[Byte], position: Long)(implicit trace: ZTraceElement): IO[IOException, Unit]

    Permalink

    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