Package org.dawnsci.conversion
Class ConversionServiceImpl
java.lang.Object
org.dawnsci.conversion.ConversionServiceImpl
- All Implemented Interfaces:
IConversionService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCall to open a conversion context on a given path.voidprocess(IConversionContext context) Call to run the conversion.
-
Constructor Details
-
ConversionServiceImpl
public ConversionServiceImpl()
-
-
Method Details
-
open
Description copied from interface:IConversionServiceCall to open a conversion context on a given path. The context returned should be configured and then the 'convert' method called to run a conversion.- Specified by:
openin interfaceIConversionService- Parameters:
paths- may be a folder path(s), or a regex(s). If a regex all matching files in the directory will be converted, for instance "C:/tmp/(.+).h5". The path separator must always be "/" even on windows. The regex is done after the last / the path preceeding the last / is the directory path and does not support regex. If the path ends with a / then all files in the directory will be processes. Sub-folders will not be traversed.- Returns:
- context to use as conversion
-
process
Description copied from interface:IConversionServiceCall to run the conversion. Process all files matching the filePathRegEx- Specified by:
processin interfaceIConversionService- Parameters:
context-- Throws:
Exception- if problem processing the conversion.
-