public class FileSystemStorageService extends Object implements StorageService
java.nio.file) compatible storage service default implementation.
Note: Stores paths in URL-encoded form.| 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(String uriPath,
boolean mkDirs) |
OutputStream |
write(WithCallback<AbsoluteLocation,? extends ResourceWriteCallback> locationWithCallback) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitflushChunkSizepublic FileSystemStorageService(Path dir)
public Stream<AbsoluteLocation<ResolvedResource>> list(AbsoluteLocation path)
list in interface StorageListServicepublic InputStream read(AbsoluteLocation path)
read in interface StorageReadServicepublic OutputStream write(WithCallback<AbsoluteLocation,? extends ResourceWriteCallback> locationWithCallback)
write in interface StorageWriteServicepublic void remove(AbsoluteLocation location)
remove in interface StorageRemoveServicepublic boolean objectExists(AbsoluteLocation location)
objectExists in interface StorageCheckServiceCopyright © 2019. All rights reserved.