public interface FileContext
Modifier and Type | Interface and Description |
---|---|
static class |
FileContext.PropertyKey
Properties can be configured within file contexts.
|
Optional<Object> property(FileContext.PropertyKey propertyKey)
propertyKey
.propertyKey
- the property keydefault <T> Optional<T> property(FileContext.PropertyKey proprtyKey, Class<T> valueType)
propertyKey
.T
- value type parameterproprtyKey
- property keyvalueType
- value type.Optional<Object> property(FileContext.PropertyKey propertyKey, Object propertyValue)
propertyKey
. Note
that providing null
for propertyValue
will remove
previous mapping.propertyKey
- the property keypropertyValue
- the property value; null
for removal of
mapping.propertyKey
.default <T> Optional<T> property(FileContext.PropertyKey propertyKey, T propertyValue, Class<T> valueType)
propertyKey
.T
- value type parameterpropertyKey
- property keypropertyValue
- the new property value.valueType
- value type.propertyKey
.default java.util.function.Supplier<FileBack.FileOperation> fileOperationSupplier()
FileContext.PropertyKey.FILE_OPERATION_SUPPLIER
.FileContext.PropertyKey.FILE_OPERATION_SUPPLIER
or null
if no
mappings found.default java.util.function.Supplier<FileBack.FileOperation> fileOperationSupplier(java.util.function.Supplier<FileBack.FileOperation> fileOperationSupplier)
FileContext.PropertyKey.FILE_OPERATION_SUPPLIER
.fileOperationSupplier
- the new value.FileContext.PropertyKey.FILE_OPERATION_SUPPLIER
or null
if there is
no mappings.default java.util.function.Consumer<String> pathNameConsumer()
default java.util.function.Consumer<String> pathNameConsumer(java.util.function.Consumer<String> pathNameConsumer)
default java.util.function.Supplier<String> pathNameSupplier()
default java.util.function.Supplier<String> pathNameSupplier(java.util.function.Supplier<String> pathNameSupplier)
default java.util.function.Consumer<ReadableByteChannel> sourceChannelConsumer()
default java.util.function.Consumer<ReadableByteChannel> sourceChannelConsumer(java.util.function.Consumer<ReadableByteChannel> sourceChannelConsumer)
default java.util.function.Supplier<ReadableByteChannel> sourceChannelSupplier()
default java.util.function.Supplier<ReadableByteChannel> sourceChannelSupplier(java.util.function.Supplier<ReadableByteChannel> sourceChannelSuppleir)
default java.util.function.Consumer<Long> sourceCopiedConsumer()
FileContext.PropertyKey.SOURCE_COPIED_CONSUMER
.FileContext.PropertyKey.SOURCE_COPIED_CONSUMER
or null
if no mappings
found.default java.util.function.Consumer<Long> sourceCopiedConsumer(java.util.function.Consumer<Long> sourceCopiedConsumer)
FileContext.PropertyKey.SOURCE_COPIED_CONSUMER
.sourceCopiedConsumer
- the new value; null
for removal of
entry.null
.default java.util.function.Supplier<ByteBuffer> sourceKeySupplier()
default java.util.function.Supplier<ByteBuffer> sourceKeySupplier(java.util.function.Supplier<ByteBuffer> sourceKeySupplier)
default java.util.function.Consumer<Object> sourceObjectConsumer()
default java.util.function.Consumer<Object> sourceObjectConsumer(java.util.function.Consumer<Object> sourceObjectConsumer)
default java.util.function.Consumer<Long> targetCopiedConsumer()
default java.util.function.Consumer<Long> targetCopiedConsumer(java.util.function.Consumer<Long> targetCopiedConsumer)
default java.util.function.Supplier<ByteBuffer> targetKeySupplier()
default java.util.function.Supplier<ByteBuffer> targetKeySupplier(java.util.function.Supplier<ByteBuffer> targetKeySupplier)
default java.util.function.Consumer<WritableByteChannel> targetChannelConsumer()
default java.util.function.Consumer<WritableByteChannel> targetChannelConsumer(java.util.function.Consumer<WritableByteChannel> targetChannelConsumer)
default java.util.function.Supplier<WritableByteChannel> targetChannelSupplier()
default java.util.function.Supplier<WritableByteChannel> targetChannelSupplier(java.util.function.Supplier<WritableByteChannel> targetChannelSupplier)
default java.util.function.Consumer<Object> targetObjectConsumer()
default java.util.function.Consumer<Object> targetObjectConsumer(java.util.function.Consumer<Object> targetObjectConsumer)
Copyright © 2011–2015. All rights reserved.