info.bioinfweb.treegraph.document.io
Class ReadWriteFactory
java.lang.Object
  
info.bioinfweb.treegraph.document.io.ReadWriteFactory
public class ReadWriteFactory
- extends Object
 
 
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
firstInstance
private static ReadWriteFactory firstInstance
factories
private EnumMap<ReadWriteFormat,SingleReadWriteFactory> factories
ReadWriteFactory
private ReadWriteFactory()
fillList
private void fillList()
 
getInstance
public static ReadWriteFactory getInstance()
 
formatByFileName
public ReadWriteFormat formatByFileName(String name)
- Returns the file format guessed from the file extension. (If several formats with the same extension 
 exist the first in the list is returned.)
- Parameters:
 name - 
- Returns:
 
 
 
formatByFile
public ReadWriteFormat formatByFile(File file)
 
getReader
public DocumentReader getReader(File file)
 
hasReader
public boolean hasReader(ReadWriteFormat f)
 
hasWriter
public boolean hasWriter(ReadWriteFormat f)
 
getReader
public DocumentReader getReader(ReadWriteFormat f)
 
getWriter
public DocumentWriter getWriter(ReadWriteFormat f)
 
getFilter
public AbstractFilter getFilter(ReadWriteFormat f)
 
size
public int size()