Package com.powsybl.commons.datasource
Interface DataSourceUtil
-
public interface DataSourceUtil
- Author:
- Geoffroy Jamgotchian
-
-
Method Summary
Static Methods Modifier and Type Method Description static DataSource
createDataSource(Path directory, String basename, CompressionFormat compressionExtension, DataSourceObserver observer)
static DataSource
createDataSource(Path directory, String fileNameOrBaseName, DataSourceObserver observer)
static String
getBaseName(String fileName)
static String
getBaseName(Path file)
static String
getFileName(String baseName, String suffix, String ext)
static OpenOption[]
getOpenOptions(boolean append)
-
-
-
Method Detail
-
getOpenOptions
static OpenOption[] getOpenOptions(boolean append)
-
createDataSource
static DataSource createDataSource(Path directory, String basename, CompressionFormat compressionExtension, DataSourceObserver observer)
-
createDataSource
static DataSource createDataSource(Path directory, String fileNameOrBaseName, DataSourceObserver observer)
-
-