Package org.openrefine.importing
Class FormatRegistry
- java.lang.Object
-
- org.openrefine.importing.FormatRegistry
-
public class FormatRegistry extends Object
-
-
Constructor Summary
Constructors Constructor Description FormatRegistry()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Map<String,String>
getExtensionToFormat()
static String
getFormat(String fileName, String mimeType)
static String
getFormatFromFileName(String fileName)
static String
getFormatFromMimeType(String mimeType)
static Map<String,List<FormatGuesser>>
getFormatToGuessers()
static Map<String,ImportingFormat>
getFormatToRecord()
static Map<String,String>
getMimeTypeToFormat()
static void
registerExtension(String extension, String format)
static void
registerFormat(String format, String label)
static void
registerFormat(String format, String label, boolean download, String uiClass, ImportingParser parser)
static void
registerFormat(String format, String label, String uiClass, ImportingParser parser)
static void
registerFormatGuesser(String format, FormatGuesser guesser)
static void
registerMimeType(String mimeType, String format)
-
-
-
Method Detail
-
registerFormat
public static void registerFormat(String format, String label, String uiClass, ImportingParser parser)
-
registerFormat
public static void registerFormat(String format, String label, boolean download, String uiClass, ImportingParser parser)
-
registerFormatGuesser
public static void registerFormatGuesser(String format, FormatGuesser guesser)
-
getFormatToRecord
public static Map<String,ImportingFormat> getFormatToRecord()
-
getFormatToGuessers
public static Map<String,List<FormatGuesser>> getFormatToGuessers()
-
-