public class FileSinkFactory extends Object
This class tries to instantiate a writer given a filename. Actually it purely tries to analyze the extension and propose the writer according to this extension.
Modifier and Type | Field and Description |
---|---|
private static ConcurrentHashMap<String,Class<? extends FileSink>> |
ext2sink |
Constructor and Description |
---|
FileSinkFactory() |
Modifier and Type | Method and Description |
---|---|
static FileSink |
sinkFor(String filename)
Looks at the file name given and its extension and propose a file output
for the format that match this extension.
|
private static final ConcurrentHashMap<String,Class<? extends FileSink>> ext2sink
public FileSinkFactory()
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses