public interface MergeOutputWriter extends OpenableCloseable
Writers need to be open before any operations can be performed and need to be closed to ensure all changes have been persisted.
See MergeOutputWriters for some common implementations.
| Modifier and Type | Method and Description |
|---|---|
void |
create(java.lang.String path,
java.io.InputStream data)
Creates a new path in the output.
|
void |
remove(java.lang.String path)
Removes a path from the output.
|
void |
replace(java.lang.String path,
java.io.InputStream data)
Replaces a path's contents with new contents.
|
close, openvoid remove(@NonNull
java.lang.String path)
path - the path to removevoid create(@NonNull
java.lang.String path,
@NonNull
java.io.InputStream data)
path - the path to createdata - the path's datavoid replace(@NonNull
java.lang.String path,
@NonNull
java.io.InputStream data)
path - the path to replacedata - the new path's data