Package space.arim.dazzleconf.backend
Interface ReadableRoot
- All Superinterfaces:
DataRoot
- All Known Implementing Classes:
InputOutputRoot,PathRoot,StringRoot
Unifying interface for string based data roots.
-
Nested Class Summary
Nested classes/interfaces inherited from interface space.arim.dazzleconf.backend.DataRoot
DataRoot.Operation<R,U> -
Method Summary
Modifier and TypeMethodDescription<R> RopenReader(@NonNull DataRoot.Operation<R, @NonNull Reader> operation) Opens a reader to the data<R> RopenWriter(@NonNull DataRoot.Operation<R, @NonNull Writer> operation) Opens a writer for the data@NonNull StringReads to a stringvoidwriteString(@NonNull String content) Writes to a stringMethods inherited from interface space.arim.dazzleconf.backend.DataRoot
dataExists
-
Method Details
-
readString
Reads to a string- Returns:
- the read content
- Throws:
IOException- upon failure to open
-
openReader
Opens a reader to the data- Type Parameters:
R- the result type- Parameters:
operation- the operation- Returns:
- the operation result
- Throws:
IOException- upon failure to open
-
writeString
Writes to a string- Parameters:
content- the content to write- Throws:
IOException- upon failure to write
-
openWriter
Opens a writer for the data- Type Parameters:
R- the result type- Parameters:
operation- the operation- Returns:
- the operation result
- Throws:
IOException- upon failure to open
-