fs2.io
Provides various ways to work with streams that perform IO.
Attributes
Members list
Packages
Provides support for working with files.
Provides support for working with files.
Attributes
Provides support for doing network I/O -- TCP, UDP, and TLS.
Provides support for doing network I/O -- TCP, UDP, and TLS.
Attributes
Type members
Classlikes
Allows watching the file system for changes to directories and files by using the platform's WatchService
.
Allows watching the file system for changes to directories and files by using the platform's WatchService
.
Attributes
- Companion
- object
- Source
- DeprecatedWatcher.scala
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Companion
- class
- Source
- DeprecatedWatcher.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Watcher.type
Attributes
- Source
- compression.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
compression.type
Types
Attributes
- Source
- io.scala
Inherited types
Attributes
- Inherited from:
- iojvmnative (hidden)
- Source
- iojvmnative.scala
Attributes
- Inherited from:
- iojvmnative (hidden)
- Source
- iojvmnative.scala
Value members
Concrete methods
Reads all bytes from the specified InputStream
with a buffer size of chunkSize
. Set closeAfterUse
to false if the InputStream
should not be closed after use.
Reads all bytes from the specified InputStream
with a buffer size of chunkSize
. Set closeAfterUse
to false if the InputStream
should not be closed after use.
Attributes
- Source
- io.scala
Reads all bytes from the specified InputStream
with a buffer size of chunkSize
. Set closeAfterUse
to false if the InputStream
should not be closed after use.
Reads all bytes from the specified InputStream
with a buffer size of chunkSize
. Set closeAfterUse
to false if the InputStream
should not be closed after use.
Recycles an underlying input buffer for performance. It is safe to call this as long as whatever consumes this Stream
does not store the Chunk
returned or pipe it to a combinator that does (e.g. buffer
). Use readInputStream
for a safe version.
Attributes
- Source
- io.scala
Writes all bytes to the specified OutputStream
. Each chunk is flushed immediately after writing. Set closeAfterUse
to false if the OutputStream
should not be closed after use.
Writes all bytes to the specified OutputStream
. Each chunk is flushed immediately after writing. Set closeAfterUse
to false if the OutputStream
should not be closed after use.
Attributes
- Source
- io.scala
Inherited methods
Stream of bytes read asynchronously from the specified classloader resource.
Stream of bytes read asynchronously from the specified classloader resource.
Attributes
- See also
-
readClassResource for a resource relative to a class.
- Inherited from:
- iojvmnative (hidden)
- Source
- iojvmnative.scala
Stream of bytes read asynchronously from the specified resource relative to the class C
.
Stream of bytes read asynchronously from the specified resource relative to the class C
.
Attributes
- See also
-
readClassLoaderResource for a resource relative to a classloader.
- Inherited from:
- iojvmnative (hidden)
- Source
- iojvmnative.scala
Take a function that emits to a java.io.OutputStream
effectfully, and return a stream which, when run, will perform that function and emit the bytes recorded in the OutputStream as an fs2.Stream
Take a function that emits to a java.io.OutputStream
effectfully, and return a stream which, when run, will perform that function and emit the bytes recorded in the OutputStream as an fs2.Stream
The stream produced by this will terminate if:
f
returnsf
callsOutputStream#close
If none of those happens, the stream will run forever.
Attributes
- Inherited from:
- ioplatform (hidden)
- Source
- ioplatform.scala
Pipe of bytes that writes emitted values to standard error asynchronously.
Pipe of bytes that writes emitted values to standard error asynchronously.
Attributes
- Inherited from:
- ioplatform (hidden)
- Source
- ioplatform.scala
Stream of bytes read asynchronously from standard input.
Stream of bytes read asynchronously from standard input.
Attributes
- Inherited from:
- ioplatform (hidden)
- Source
- ioplatform.scala
Stream of String
read asynchronously from standard input decoded in UTF-8.
Stream of String
read asynchronously from standard input decoded in UTF-8.
Attributes
- Inherited from:
- ioplatform (hidden)
- Source
- ioplatform.scala
Pipe of bytes that writes emitted values to standard output asynchronously.
Pipe of bytes that writes emitted values to standard output asynchronously.
Attributes
- Inherited from:
- ioplatform (hidden)
- Source
- ioplatform.scala
Writes this stream to standard output asynchronously, converting each element to a sequence of bytes via Show
and the given Charset
.
Writes this stream to standard output asynchronously, converting each element to a sequence of bytes via Show
and the given Charset
.
Attributes
- Inherited from:
- ioplatform (hidden)
- Source
- ioplatform.scala
Pipe that converts a stream of bytes to a stream that will emit a single java.io.InputStream
, that is closed whenever the resulting stream terminates.
Pipe that converts a stream of bytes to a stream that will emit a single java.io.InputStream
, that is closed whenever the resulting stream terminates.
If the close
of resulting input stream is invoked manually, then this will await until the original stream completely terminates.
Because all InputStream
methods block (including close
), the resulting InputStream
should be consumed on a different thread pool than the one that is backing the effect.
Note that the implementation is not thread safe -- only one thread is allowed at any time to operate on the resulting java.io.InputStream
.
Attributes
- Inherited from:
- ioplatform (hidden)
- Source
- ioplatform.scala
Like toInputStream but returns a Resource
rather than a single element stream.
Like toInputStream but returns a Resource
rather than a single element stream.
Attributes
- Inherited from:
- ioplatform (hidden)
- Source
- ioplatform.scala
Deprecated and Inherited methods
Attributes
- Deprecated
- true
- Inherited from:
- ioplatform (hidden)
- Source
- ioplatform.scala