/**
* Creates a new JPredFile object.
*
+ * BH allows File or String
+ *
* @param inFile
* DOCUMENT ME!
* @param sourceType
* @throws IOException
* DOCUMENT ME!
*/
- public JPredFile(String inFile, DataSourceType sourceType)
+ public JPredFile(Object inFile, DataSourceType sourceType)
throws IOException
{
super(inFile, sourceType);
for (int j = 0; j < i; j++)
{
- scores.setElementAt(
- ((Float) scores.elementAt(j)).toString(), j);
+ scores.setElementAt(((Float) scores.elementAt(j)).toString(),
+ j);
}
scores.addElement(ascore);
{
// Add all sequence like objects
Sequence newSeq = new Sequence(ids.elementAt(i).toString(),
- seq_entries.elementAt(i).toString(), 1, seq_entries
- .elementAt(i).toString().length());
+ seq_entries.elementAt(i).toString(), 1,
+ seq_entries.elementAt(i).toString().length());
if (maxLength != seq_entries.elementAt(i).toString().length())
{
- throw new IOException(
- MessageManager
- .formatMessage(
- "exception.jpredconcide_entry_has_unexpected_number_of_columns",
- new String[] { ids.elementAt(i).toString() }));
+ throw new IOException(MessageManager.formatMessage(
+ "exception.jpredconcide_entry_has_unexpected_number_of_columns",
+ new String[]
+ { ids.elementAt(i).toString() }));
}
- if ((newSeq.getName().startsWith("QUERY") || newSeq.getName()
- .startsWith("align;")) && (QuerySeqPosition == -1))
+ if ((newSeq.getName().startsWith("QUERY")
+ || newSeq.getName().startsWith("align;"))
+ && (QuerySeqPosition == -1))
{
QuerySeqPosition = seqs.size();
}
} catch (Exception e)
{
tal = null;
- IOException ex = new IOException(
- MessageManager
- .formatMessage(
- "exception.couldnt_parse_concise_annotation_for_prediction",
- new String[] { e.getMessage() }));
+ IOException ex = new IOException(MessageManager.formatMessage(
+ "exception.couldnt_parse_concise_annotation_for_prediction",
+ new String[]
+ { e.getMessage() }));
e.printStackTrace(); // java 1.1 does not have :
// ex.setStackTrace(e.getStackTrace());
throw ex;
* @return String
*/
@Override
- public String print()
+ public String print(SequenceI[] sqs, boolean jvsuffix)
{
return "Not Supported";
}
/**
- * DOCUMENT ME!
*
* @param args
- * DOCUMENT ME!
+ * @j2sIgnore
*/
public static void main(String[] args)
{