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.voidwrite(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:MonoRead them all.- Specified by:
readin 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:MonoWrite them all back.- Specified by:
writein interfaceMono- Parameters:
rows- The list of all lines- Throws:
IOException- If fails
-
-