public interface PackagesStorage
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Void> |
closeAsync()
Close storage asynchronously.
|
CompletableFuture<Void> |
deleteAsync(String path)
Delete a file.
|
CompletableFuture<Boolean> |
existAsync(String path)
Check the file is or not exists.
|
void |
initialize()
Initialize the packages management service with the given storage.
|
CompletableFuture<List<String>> |
listAsync(String path)
List all the file under a path.
|
CompletableFuture<Void> |
readAsync(String path,
OutputStream outputStream)
Read a file to a output stream.
|
CompletableFuture<Void> |
writeAsync(String path,
InputStream inputStream)
Write a input stream to a path.
|
void initialize()
CompletableFuture<Void> writeAsync(String path, InputStream inputStream)
path - file pathinputStream - the input file streamCompletableFuture<Void> readAsync(String path, OutputStream outputStream)
path - file pathoutputStream - the output file streamCompletableFuture<Void> deleteAsync(String path)
path - file pathCompletableFuture<List<String>> listAsync(String path)
path - file pathCompletableFuture<Boolean> existAsync(String path)
path - file pathCompletableFuture<Void> closeAsync()
Copyright © 2017–2022 Apache Software Foundation. All rights reserved.