public class FileSystemStorageService extends Object implements StorageService
java.nio.file) compatible storage service default implementation.| Constructor and Description |
|---|
FileSystemStorageService(Path dir) |
| Modifier and Type | Method and Description |
|---|---|
Stream<AbsoluteLocation<ResolvedResource>> |
list(AbsoluteLocation path)
Lists resources and returns their location without access credentials.
|
boolean |
objectExists(AbsoluteLocation location) |
InputStream |
read(AbsoluteLocation path) |
void |
remove(AbsoluteLocation location) |
protected Path |
resolve(URI uri,
boolean mkDirs) |
OutputStream |
write(AbsoluteLocation path) |
public FileSystemStorageService(Path dir)
public Stream<AbsoluteLocation<ResolvedResource>> list(AbsoluteLocation path)
list in interface StorageListServicepublic InputStream read(AbsoluteLocation path)
read in interface StorageReadServicepublic OutputStream write(AbsoluteLocation path)
write in interface StorageWriteServicepublic void remove(AbsoluteLocation location)
remove in interface StorageRemoveServicepublic boolean objectExists(AbsoluteLocation location)
objectExists in interface StorageCheckServiceCopyright © 2019. All rights reserved.