Click or drag to resize
Akka.NETFileIO Class
TBD
Inheritance Hierarchy
SystemObject
  Akka.Streams.DslFileIO

Namespace:  Akka.Streams.Dsl
Assembly:  Akka.Streams (in Akka.Streams.dll) Version: 1.2.3.42 (1.2.3.42)
Syntax
public static class FileIO

The FileIO type exposes the following members.

Methods
  NameDescription
Public methodStatic memberFromFile
Creates a Source from a Files contents. Emitted elements are chunkSize sized ByteString elements, except the final element, which will be up to chunkSize in size. You can configure the default dispatcher for this Source by changing the "akka.stream.blocking-io-dispatcher" or set it for a given Source by using ActorAttributes. It materializes a TaskTResult of IOResult containing the number of bytes read from the source file upon completion, and a possible exception if IO operation was not completed successfully.
Public methodStatic memberToFile
Creates a Sink which writes incoming ByteString elements to the given file and either overwrites or appends to it. Materializes a TaskTResult of IOResult that will be completed with the size of the file(in bytes) at the streams completion, and a possible exception if IO operation was not completed successfully. This source is backed by an Actor which will use the dedicated "akka.stream.blocking-io-dispatcher", unless configured otherwise by using ActorAttributes.
Top
See Also