Squishy
Toggle table of contents
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
Squishy
core
/
mtctx.squishy.api.io
/
JSONSpecificIO
JSONSpecific
IO
class
JSONSpecificIO
(
filePath
:
Path
,
json
:
Json
=
defaultJson
)
:
SerializationSpecificIO
Members
Constructors
JSONSpecific
IO
Link copied to clipboard
constructor
(
filePath
:
Path
,
json
:
Json
=
defaultJson
)
Properties
file
Path
Link copied to clipboard
val
filePath
:
Path
Functions
read
Link copied to clipboard
open
fun
<
T
>
read
(
deserializer
:
DeserializationStrategy
<
T
>
,
bufferSize
:
Int
=
DEFAULT_BUFFER_SIZE
,
charset
:
Charset
=
Charsets.UTF_8
)
:
Outcome
<
T
>
open
fun
read
(
bufferSize
:
Int
,
charset
:
Charset
)
:
String
read
All
Lines
Link copied to clipboard
open
fun
readAllLines
(
bufferSize
:
Int
,
charset
:
Charset
)
:
List
<
String
>
read
Line
Link copied to clipboard
open
fun
readLine
(
line
:
Int
,
bufferSize
:
Int
,
charset
:
Charset
)
:
Outcome
<
String
>
write
Link copied to clipboard
open
fun
<
T
>
write
(
content
:
T
,
serializer
:
SerializationStrategy
<
T
>
,
bufferSize
:
Int
=
DEFAULT_BUFFER_SIZE
,
charset
:
Charset
=
Charsets.UTF_8
,
vararg
openOptions
:
OpenOption
)
open
fun
write
(
content
:
Any
,
bufferSize
:
Int
,
charset
:
Charset
,
vararg
openOptions
:
OpenOption
)
open
fun
write
(
content
:
List
<
Any
>
,
bufferSize
:
Int
,
charset
:
Charset
,
vararg
openOptions
:
OpenOption
)