X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fio%2FJPredFile.java;h=6af92b72ea9f9efc00d79559993981c4202ee48c;hb=9c127c47a7bf73c3e538815635f525fe59f7faba;hp=026c879173e81a0efdd9fd6ddd480db657202700;hpb=3d0101179759ef157b088ea135423cd909512d9f;p=jalview.git diff --git a/src/jalview/io/JPredFile.java b/src/jalview/io/JPredFile.java index 026c879..6af92b7 100755 --- a/src/jalview/io/JPredFile.java +++ b/src/jalview/io/JPredFile.java @@ -68,6 +68,8 @@ public class JPredFile extends AlignFile /** * Creates a new JPredFile object. * + * BH allows File or String + * * @param inFile * DOCUMENT ME! * @param sourceType @@ -76,7 +78,7 @@ public class JPredFile extends AlignFile * @throws IOException * DOCUMENT ME! */ - public JPredFile(String inFile, DataSourceType sourceType) + public JPredFile(Object inFile, DataSourceType sourceType) throws IOException { super(inFile, sourceType); @@ -207,7 +209,7 @@ public class JPredFile extends AlignFile { ascore = symbols.nextToken(); - Float score = new Float(ascore); + Float score = Float.valueOf(ascore); scores.addElement(score); } @@ -283,7 +285,7 @@ public class JPredFile extends AlignFile seq_entries.addElement(newseq.toString()); ids.addElement(id); - Symscores.put(id, new Integer(ids.size() - 1)); + Symscores.put(id, Integer.valueOf(ids.size() - 1)); } } } @@ -361,10 +363,9 @@ public class JPredFile extends AlignFile } /** - * DOCUMENT ME! * * @param args - * DOCUMENT ME! + * @j2sIgnore */ public static void main(String[] args) {