public class ImporterFactory
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
Importer |
createFor(java.lang.String type)
Creates an importer for a specific file type.
|
java.lang.String[] |
getFileSuffixes(java.lang.String type)
Gets a list of possible file-suffixes for a specific file type.
|
java.lang.String[] |
getSupportedTypes()
Gets a list of supported types this factory can create an importer for.
|
java.lang.String |
getType(java.lang.String filename)
Tries to determinate the type of a file by analysing the file-suffix.
|
static ImporterFactory |
instance()
Instance of this factory (singleton).
|
public static final ImporterFactory instance()
public java.lang.String[] getSupportedTypes()
public Importer createFor(java.lang.String type)
type
- Type.public java.lang.String[] getFileSuffixes(java.lang.String type)
type
- File type.public java.lang.String getType(java.lang.String filename)
filename
- Filename© 2003-2011 by Sascha Schmidt (vision-cloud.de). All Rights Reserved.