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
- All
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( ... ) @native() @HotSpotIntrinsicCandidate()
-
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: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
flush(os: OutputStream): M[Unit]
Flush
os
. -
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
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
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
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( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
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.