public abstract class AbstractFileContext extends Object implements FileContext
FileContext
.FileContext.PropertyKey
Constructor and Description |
---|
AbstractFileContext() |
Modifier and Type | Method and Description |
---|---|
protected Map<FileContext.PropertyKey,Object> |
properties()
Returns a map of properties.
|
Optional<Object> |
property(FileContext.PropertyKey key)
Returns an optional property value mapped to specified
propertyKey . |
Optional<Object> |
property(FileContext.PropertyKey key,
Object value)
Sets a new property value mapped to specified
propertyKey . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
fileOperationSupplier, fileOperationSupplier, pathNameConsumer, pathNameConsumer, pathNameSupplier, pathNameSupplier, property, property, sourceChannelConsumer, sourceChannelConsumer, sourceChannelSupplier, sourceChannelSupplier, sourceCopiedConsumer, sourceCopiedConsumer, sourceKeySupplier, sourceKeySupplier, sourceObjectConsumer, sourceObjectConsumer, targetChannelConsumer, targetChannelConsumer, targetChannelSupplier, targetChannelSupplier, targetCopiedConsumer, targetCopiedConsumer, targetKeySupplier, targetKeySupplier, targetObjectConsumer, targetObjectConsumer
public Optional<Object> property(FileContext.PropertyKey key)
FileContext
propertyKey
.property
in interface FileContext
key
- the property keypublic Optional<Object> property(FileContext.PropertyKey key, Object value)
FileContext
propertyKey
. Note
that providing null
for propertyValue
will remove
previous mapping.property
in interface FileContext
key
- the property keyvalue
- the property value; null
for removal of
mapping.propertyKey
.protected Map<FileContext.PropertyKey,Object> properties()
Copyright © 2011–2015. All rights reserved.