Skip to content

IStreamFactory en

Alexey Zakharov edited this page Apr 6, 2024 · 1 revision

Attention! This article, as well as this announcement, are automatically translated from Russian.

Interface IStreamFactory

Factory interface for unified acquisition of I/O streams across environments.

Methods

  • bool FileExists(Uri uri); - checks whether the file exists.
  • Stream GetInputStream(Uri uri); - Returns the stream for reading the file.
  • Stream GetOutputStream(Uri uri); - Creates a file and returns a stream to write to the file.

Review

Clone this wiki locally