public interface FormatLocationTransformer
FileSelection
if required.
For example, a specified location can have some metadata info,
so location transformer implementation may extract this metadata info,
and create FileSelection
with the actual location.
Modifier and Type | Method and Description |
---|---|
boolean |
canTransform(String location)
Checks whether specified location can be transformed.
|
FileSelection |
transform(String location,
Function<String,FileSelection> selectionFactory)
Transforms specified location and returns
FileSelection instance with updated location. |
boolean canTransform(String location)
location
- location to checktrue
if specified location can be transformed,
false
otherwiseFileSelection transform(String location, Function<String,FileSelection> selectionFactory)
FileSelection
instance with updated location.location
- location to transformselectionFactory
- file selection factoryFileSelection
instance with updated locationCopyright © 1970 The Apache Software Foundation. All rights reserved.