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() |
FileFormat |
getFileFormatFor(String extension)
Find the registered FileFormat for the given file extension
|
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 FileFormat getFileFormatFor(String extension)
extension - public boolean contains(String extension)
extension - Copyright © 2010–2014. All rights reserved.