String adjustForGapTreatment(String sequenceString, char gap,
FileFormatI format)
{
- if (format == FileFormat.MSF)
+ if (FileFormat.MSF.equals(format))
{
/*
* MSF forces gap character to '.', so change it back
/**
* Data provider that serves alignment formats that are both readable and
- * writable
+ * (text) writable
*
* @return
*/
List<FileFormatI> both = new ArrayList<FileFormatI>();
for (FileFormat format : FileFormat.values())
{
- if (format.isReadable() && format.isWritable())
+ if (format.isReadable() && format.isWritable()
+ && format.isTextFormat())
{
both.add(format);
}