public class FileFormatRegistry extends Object
| Constructor and Description | 
|---|
| FileFormatRegistry() | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | contains(String extension)Returns true if there is a FileFormat registered for the given file extension | 
| static FileFormatRegistry | getDefault()The default registry. | 
| FileFormat | getFileFormatFor(String extension)Find the registered FileFormat for the given file extension | 
| void | registerFileFormat(FileFormat format)Register a new FileFormat for the extensions declared by the format
 itself. | 
| void | registerFileFormat(String extension,
                  FileFormat format)Register a new FileFormat for a given file extension | 
public static FileFormatRegistry getDefault()
public void registerFileFormat(String extension, FileFormat format)
extension - the file extensionformat - the FileFormatpublic void registerFileFormat(FileFormat format)
format - the FileFormatpublic FileFormat getFileFormatFor(String extension)
extension - the file extension to register the file format forpublic boolean contains(String extension)
extension - the file extension to register the file format forCopyright © 2015. All rights reserved.