Mercurial > repos > timpalpant > java_genomics_toolkit
diff java-genomics-toolkit/src/edu/unc/genomics/WigFileFactory.java @ 0:1daf3026d231
Upload alpha version
author | timpalpant |
---|---|
date | Mon, 13 Feb 2012 21:55:55 -0500 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/java-genomics-toolkit/src/edu/unc/genomics/WigFileFactory.java Mon Feb 13 21:55:55 2012 -0500 @@ -0,0 +1,25 @@ +package edu.unc.genomics; + +import com.beust.jcommander.IStringConverterFactory; + +import edu.unc.genomics.io.WigFile; + +/** + * @author timpalpant + * + */ +public class WigFileFactory implements IStringConverterFactory { + + /* (non-Javadoc) + * @see com.beust.jcommander.IStringConverterFactory#getConverter(java.lang.Class) + */ + @Override + public Class<WigFileConverter> getConverter(Class forType) { + if (forType.equals(WigFile.class)) { + return WigFileConverter.class; + } else { + return null; + } + } + +}