public class FileExtensionHelper extends Object
Constructor and Description |
---|
FileExtensionHelper() |
Modifier and Type | Method and Description |
---|---|
static Map<String,StringList> |
buildAllSupportedFilesExtensions(String allSupportedFilterName,
boolean createAllSupportedFilterOnly,
Map<String,StringList>... filterEntries)
Creates a special type of the filter that combines all file types from the passed filters
|
static String |
getAllSupportedFilesFilterName() |
static String |
getCsvFileFilterName() |
static String |
getExcelAndCSVFileFilterName() |
static Map<String,StringList> |
getExcelAndСsvFileFilterExtensions() |
static Map<String,StringList> |
getExcelFileFilterExtensions() |
static String |
getExcelFileFilterName() |
static Map<String,StringList> |
getXmlFileFilterExtensions() |
static String |
getXmlFileFilterName() |
static Map<String,StringList> |
getСsvFileFilterExtensions() |
public static String getAllSupportedFilesFilterName()
public static Map<String,StringList> buildAllSupportedFilesExtensions(String allSupportedFilterName, boolean createAllSupportedFilterOnly, Map<String,StringList>... filterEntries)
allSupportedFilterName
- - A generic name for the "All supported file types" file filtercreateAllSupportedFilterOnly
- - If true, the only "All supported file types" will be created
If false - "All supported file types" will be created and other filter types
will be included as a separate filter itemsfilterEntries
- - A container with extensions and their descriptionspublic static Map<String,StringList> getExcelFileFilterExtensions()
public static String getExcelFileFilterName()
public static String getExcelAndCSVFileFilterName()
public static Map<String,StringList> getExcelAndСsvFileFilterExtensions()
public static Map<String,StringList> getСsvFileFilterExtensions()
public static String getCsvFileFilterName()
public static Map<String,StringList> getXmlFileFilterExtensions()
public static String getXmlFileFilterName()
Copyright © 2019. All rights reserved.