class IOActions[M[_]] extends AnyRef
Constructor for a module of IO operations in some effectful monad. This is by no means complete; contributions welcome. The construtors here expose naked lifetime-managed objects and should be used with caution; they are mostly intended for library authors who wish to integrate vendor- specific behavior that relies on JDK IO.
- Source
- io.scala
- Grouped
- Alphabetic
- By Inheritance
- IOActions
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new IOActions()(implicit M: Sync[M])
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
- def copyBlock(buf: Array[Byte])(is: InputStream, os: OutputStream): M[Int]
Copy a block from
is
toos
using naked bufferbuf
, which will be clobbered. - def copyFileToStream(bufSize: Int, file: File, os: OutputStream): M[Unit]
Copy the contents of
file
to aos
in blocks of sizebufSize
. - def copyStream(buf: Array[Byte])(is: InputStream, os: OutputStream): M[Unit]
Copy the remainder of
is
intoos
using naked bufferbuf
, which will be clobbered. - def copyStreamToFile(bufSize: Int, file: File, is: InputStream): M[Unit]
Copy the remainder of
is
tofile
in blocks of sizebufSize
. - final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def flush(os: OutputStream): M[Unit]
Flush
os
. - final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def putStr(s: String): M[Unit]
Print to
Console.out
- def putStrLn(s: String): M[Unit]
Print to
Console.out
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def withFileInputStream[A](file: File)(f: (FileInputStream) => M[A]): M[A]
Perform an operation with a
FileInputStream
, which will be closed afterward. - def withFileOutputStream[A](file: File)(f: (FileOutputStream) => M[A]): M[A]
Perform an operation with a
FileOutputStream
, which will be closed afterward.
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)