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,
boolean compress)
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,
boolean compress)
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,
boolean compress)
path - the path to createdata - the path's datacompress - whether the data will be compressedvoid replace(@NonNull
java.lang.String path,
@NonNull
java.io.InputStream data,
boolean compress)
path - the path to replacedata - the new path's datacompress - whether the data will be compressed