DatastoreAccesspublic class FileDatastoreAccess extends java.lang.Object implements DatastoreAccess
| Constructor | Description |
|---|---|
FileDatastoreAccess() |
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
read(java.io.File file) |
Reads the given file if it exists, using the jvm default charset.
|
void |
write(java.io.File file,
java.lang.String jsonPayload) |
Writes the given json payload to the given file, using
the jvm default charset.
|
public java.lang.String read(java.io.File file)
throws java.io.IOException
read in interface DatastoreAccessfile - file to readjava.io.IOException - exceptionpublic void write(java.io.File file,
java.lang.String jsonPayload)
throws java.io.IOException
write in interface DatastoreAccessfile - new or existing filejsonPayload - datajava.io.IOException - exception