Package space.arim.dazzleconf.backend
Interface BinaryRoot
- All Superinterfaces:
DataRoot
- All Known Implementing Classes:
InputOutputRoot,PathRoot
Data roots which are capable of working with raw bytes.
-
Nested Class Summary
Nested classes/interfaces inherited from interface space.arim.dazzleconf.backend.DataRoot
DataRoot.Operation<R,U> -
Method Summary
Modifier and TypeMethodDescription<R> RopenInputStream(@NonNull DataRoot.Operation<R, @NonNull InputStream> operation) Opens an input stream for the data<R> RopenOutputStream(@NonNull DataRoot.Operation<R, @NonNull OutputStream> operation) Opens an output stream to the data<R> RopenReadChannel(@NonNull DataRoot.Operation<R, @NonNull ReadableByteChannel> operation) Opens a read channel for the data<R> RopenWriteChannel(@NonNull DataRoot.Operation<R, @NonNull WritableByteChannel> operation) Opens a write channel to the dataMethods inherited from interface space.arim.dazzleconf.backend.DataRoot
dataExists
-
Method Details
-
openReadChannel
<R> R openReadChannel(@NonNull DataRoot.Operation<R, @NonNull ReadableByteChannel> operation) throws IOExceptionOpens a read channel for the data- Type Parameters:
R- the result type- Parameters:
operation- the operation- Returns:
- the operation result
- Throws:
IOException- upon failure to open
-
openInputStream
<R> R openInputStream(@NonNull DataRoot.Operation<R, @NonNull InputStream> operation) throws IOExceptionOpens an input stream for the data- Type Parameters:
R- the result type- Parameters:
operation- the operation- Returns:
- the operation result
- Throws:
IOException- upon failure to open
-
openWriteChannel
<R> R openWriteChannel(@NonNull DataRoot.Operation<R, @NonNull WritableByteChannel> operation) throws IOExceptionOpens a write channel to the data- Type Parameters:
R- the result type- Parameters:
operation- the operation- Returns:
- the operation result
- Throws:
IOException- upon failure to open
-
openOutputStream
<R> R openOutputStream(@NonNull DataRoot.Operation<R, @NonNull OutputStream> operation) throws IOExceptionOpens an output stream to the data- Type Parameters:
R- the result type- Parameters:
operation- the operation- Returns:
- the operation result
- Throws:
IOException- upon failure to open
-