Package org.eolang.tojos
Class Json
- java.lang.Object
-
- org.eolang.tojos.Json
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<Map<String,String>>
read()
Read them all.void
write(Collection<Map<String,String>> rows)
Write them all back.
-
-
-
Constructor Detail
-
Json
public Json(Path path)
Ctor.- Parameters:
path
- The path to the file
-
-
Method Detail
-
read
public Collection<Map<String,String>> read() throws IOException
Description copied from interface:Mono
Read them all.- Specified by:
read
in interfaceMono
- Returns:
- The list of all lines
- Throws:
IOException
- If fails
-
write
public void write(Collection<Map<String,String>> rows) throws IOException
Description copied from interface:Mono
Write them all back.- Specified by:
write
in interfaceMono
- Parameters:
rows
- The list of all lines- Throws:
IOException
- If fails
-
-