toggle menu
flatInvoker
common
switch theme
search in API
reaktor-io
/
dev.shibasis.reaktor.io.adapters
/
FileAdapter
File
Adapter
abstract
class
FileAdapter
<
Controller
>
(
controller
:
Controller
)
:
Adapter
<
Controller
>
Inheritors
AndroidFileAdapter
DarwinFileAdapter
Members
Constructors
File
Adapter
Link copied to clipboard
constructor
(
controller
:
Controller
)
Properties
cache
Directory
Link copied to clipboard
abstract
val
cacheDirectory
:
String
controller
Link copied to clipboard
val
controller
:
Controller
?
document
Directory
Link copied to clipboard
abstract
val
documentDirectory
:
String
NULL_CONTROLLER
Link copied to clipboard
val
NULL_CONTROLLER
:
Error
ref
Link copied to clipboard
val
ref
:
WeakRef
<
Controller
>
scope
Link copied to clipboard
val
scope
:
CoroutineScope
Functions
buffered
Write
Binary
File
Link copied to clipboard
fun
bufferedWriteBinaryFile
(
source
:
Source
,
outputPath
:
String
)
handle
Link copied to clipboard
open
override
fun
handle
(
event
:
ControllerEvent
)
fun
handle
(
controller
:
Controller
,
event
:
ControllerEvent
)
invoke
Link copied to clipboard
operator
fun
<
Result
>
invoke
(
function
:
Controller
.
(
)
->
Result
?
)
:
Result
?
invoke
Suspend
Link copied to clipboard
suspend
fun
<
Result
>
invokeSuspend
(
function
:
suspend
Controller
.
(
)
->
Result
?
)
:
Result
?
null
Controller
Result
Link copied to clipboard
fun
<
T
>
nullControllerResult
(
)
:
Result
<
T
>
read
Binary
File
Link copied to clipboard
fun
readBinaryFile
(
path
:
String
)
:
ByteArray
?
read
Text
File
Link copied to clipboard
fun
readTextFile
(
path
:
String
)
:
String
?
write
Binary
File
Link copied to clipboard
fun
writeBinaryFile
(
path
:
String
,
data
:
ByteArray
)
write
Text
File
Link copied to clipboard
fun
writeTextFile
(
path
:
String
,
data
:
String
)