package io
- Alphabetic
- By Inheritance
- io
- ioplatform
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Package Members
Value Members
- def readInputStream[F[_]](fis: F[InputStream], chunkSize: Int, closeAfterUse: Boolean = true)(implicit F: Sync[F]): Stream[F, Byte]
Reads all bytes from the specified
InputStreamwith a buffer size ofchunkSize.Reads all bytes from the specified
InputStreamwith a buffer size ofchunkSize. SetcloseAfterUseto false if theInputStreamshould not be closed after use. - def stdin[F[_]](bufSize: Int)(implicit arg0: Sync[F]): Stream[F, Byte]
Stream of bytes read asynchronously from standard input.
- def stdinUtf8[F[_]](bufSize: Int)(implicit arg0: Sync[F]): Stream[F, String]
Stream of
Stringread asynchronously from standard input decoded in UTF-8. - def stdout[F[_]](implicit arg0: Sync[F]): Pipe[F, Byte, INothing]
Pipe of bytes that writes emitted values to standard output asynchronously.
- def stdoutLines[F[_], O](charset: Charset = utf8Charset)(implicit arg0: Sync[F], arg1: Show[O]): Pipe[F, O, INothing]
Writes this stream to standard output asynchronously, converting each element to a sequence of bytes via
Showand the givenCharset.Writes this stream to standard output asynchronously, converting each element to a sequence of bytes via
Showand the givenCharset.Each write operation is performed on the supplied execution context. Writes are blocking so the execution context should be configured appropriately.
- def unsafeReadInputStream[F[_]](fis: F[InputStream], chunkSize: Int, closeAfterUse: Boolean = true)(implicit F: Sync[F]): Stream[F, Byte]
Reads all bytes from the specified
InputStreamwith a buffer size ofchunkSize.Reads all bytes from the specified
InputStreamwith a buffer size ofchunkSize. SetcloseAfterUseto false if theInputStreamshould not be closed after use.Recycles an underlying input buffer for performance. It is safe to call this as long as whatever consumes this
Streamdoes not store theChunkreturned or pipe it to a combinator that does (e.g.buffer). UsereadInputStreamfor a safe version. - def writeOutputStream[F[_]](fos: F[OutputStream], closeAfterUse: Boolean = true)(implicit F: Sync[F]): Pipe[F, Byte, INothing]
Writes all bytes to the specified
OutputStream.Writes all bytes to the specified
OutputStream. SetcloseAfterUseto false if theOutputStreamshould not be closed after use.Each write operation is performed on the supplied execution context. Writes are blocking so the execution context should be configured appropriately.