Package io.micronaut.objectstorage.local
Class LocalStorageEntry
java.lang.Object
io.micronaut.objectstorage.local.LocalStorageEntry
- All Implemented Interfaces:
ObjectStorageEntry<Path>
An
ObjectStorageEntry
implementation for local storage.- Since:
- 2.0.0
- Author:
- Álvaro Sánchez-Mariscal
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.objectstorage.ObjectStorageEntry
toStreamedFile, toSystemFile
-
Constructor Details
-
LocalStorageEntry
-
-
Method Details
-
getKey
Description copied from interface:ObjectStorageEntry
The object path on object storage. For example/path/to
- Specified by:
getKey
in interfaceObjectStorageEntry<Path>
- Returns:
- object path or empty string if the object is placed at the root of bucket
-
getInputStream
- Specified by:
getInputStream
in interfaceObjectStorageEntry<Path>
- Returns:
- The object content.
-
getNativeEntry
- Specified by:
getNativeEntry
in interfaceObjectStorageEntry<Path>
- Returns:
- The underlying cloud vendor-specific response object.
-
getMetadata
- Specified by:
getMetadata
in interfaceObjectStorageEntry<Path>
- Returns:
- a map with key-value pairs that were stored along the file. An empty map by default.
-
getContentType
- Specified by:
getContentType
in interfaceObjectStorageEntry<Path>
- Returns:
- the MIME type of the entry.
-