X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fio%2FFormatAdapter.java;h=724170e0c1f66ad00adf056ee041a53e4ae01675;hb=74b531f56bbaad5c5e06a4744980256fe8110923;hp=1408cd1f5c5d144df7401d10241722978c649891;hpb=8b27085fa7fc5f2877e078421284c2636b85b8c6;p=jalview.git diff --git a/src/jalview/io/FormatAdapter.java b/src/jalview/io/FormatAdapter.java index 1408cd1..724170e 100755 --- a/src/jalview/io/FormatAdapter.java +++ b/src/jalview/io/FormatAdapter.java @@ -242,14 +242,6 @@ public class FormatAdapter extends AppletFormatAdapter getCacheSuffixDefault(format), colSel, null); } - public String formatSequences(FileFormatI format, AlignmentI alignment, - String[] omitHidden, int[] exportRange, ColumnSelection colSel, - SequenceGroup sgp) - { - return formatSequences(format, alignment, omitHidden, exportRange, - getCacheSuffixDefault(format), colSel, sgp); - } - /** * hack function to replace seuqences with visible sequence strings before * generating a string of the alignment in the given format. @@ -337,4 +329,12 @@ public class FormatAdapter extends AppletFormatAdapter selectedOnly); } + public AlignmentI readFromFile(AlignmentFileI source, FileFormatI format) + throws IOException + { + FileParse fp = new FileParse(source.getInFile(), + source.getDataSourceType()); + return readFromFile(fp, format); + } + }