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
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micronaut.objectstorage.ObjectStorageEntry
toStreamedFile, toSystemFile
-
Constructor Details
-
LocalStorageEntry
-
-
Method Details
-
getKey
Description copied from interface:ObjectStorageEntryThe object path on object storage. For example/path/to- Specified by:
getKeyin interfaceObjectStorageEntry<Path>- Returns:
- object path or empty string if the object is placed at the root of bucket
-
getInputStream
- Specified by:
getInputStreamin interfaceObjectStorageEntry<Path>- Returns:
- The object content.
-
getNativeEntry
- Specified by:
getNativeEntryin interfaceObjectStorageEntry<Path>- Returns:
- The underlying cloud vendor-specific response object.
-
getMetadata
- Specified by:
getMetadatain interfaceObjectStorageEntry<Path>- Returns:
- a map with key-value pairs that were stored along the file. An empty map by default.
-
getContentType
- Specified by:
getContentTypein interfaceObjectStorageEntry<Path>- Returns:
- the MIME type of the entry.
-