public class StorageTimestamperConverter extends java.lang.Object implements StorageConverterPlugin
Constructor and Description |
---|
StorageTimestamperConverter() |
Modifier and Type | Method and Description |
---|---|
HasInputStream |
createResource(Path path,
ResourceMetaBuilder resourceMetaBuilder,
HasInputStream hasInputStream)
Convert a resource during create operation and return a new data stream, or null to pass the data without
changing.
|
HasInputStream |
readResource(Path path,
ResourceMetaBuilder resourceMetaBuilder,
HasInputStream hasInputStream)
Convert a resource during read operation and return a new data stream, or null to pass the data without
changing.
|
HasInputStream |
updateResource(Path path,
ResourceMetaBuilder resourceMetaBuilder,
HasInputStream hasInputStream)
Convert a resource during update operation and return a new data stream, or null to pass the data without
changing.
|
public HasInputStream readResource(Path path, ResourceMetaBuilder resourceMetaBuilder, HasInputStream hasInputStream)
StorageConverterPlugin
readResource
in interface StorageConverterPlugin
path
- input pathresourceMetaBuilder
- builder to modify metadatahasInputStream
- accessor for underlying data streampublic HasInputStream createResource(Path path, ResourceMetaBuilder resourceMetaBuilder, HasInputStream hasInputStream)
StorageConverterPlugin
createResource
in interface StorageConverterPlugin
path
- input pathresourceMetaBuilder
- builder to modify metadatahasInputStream
- accessor for underlying data streampublic HasInputStream updateResource(Path path, ResourceMetaBuilder resourceMetaBuilder, HasInputStream hasInputStream)
StorageConverterPlugin
updateResource
in interface StorageConverterPlugin
path
- input pathresourceMetaBuilder
- builder to modify metadatahasInputStream
- accessor for underlying data stream