/*
- * Jalview - A Sequence Alignment Editor and Viewer (Version 2.6)
- * Copyright (C) 2010 J Procter, AM Waterhouse, G Barton, M Clamp, S Searle
+ * Jalview - A Sequence Alignment Editor and Viewer (Version 2.7)
+ * Copyright (C) 2011 J Procter, AM Waterhouse, J Engelhardt, LM Lui, G Barton, M Clamp, S Searle
*
* This file is part of Jalview.
*
import java.io.*;
import java.util.*;
+import javax.xml.parsers.ParserConfigurationException;
+
+import org.xml.sax.SAXException;
+
+import fr.orsay.lri.varna.exceptions.ExceptionFileFormatOrSyntax;
+import fr.orsay.lri.varna.exceptions.ExceptionLoadingFailed;
+import fr.orsay.lri.varna.exceptions.ExceptionPermissionDenied;
+import fr.orsay.lri.varna.exceptions.ExceptionUnmatchedClosingParentheses;
+
import jalview.datamodel.*;
import jalview.util.*;
*
* @throws IOException
* DOCUMENT ME!
+ * @throws SAXException
+ * @throws ParserConfigurationException
+ * @throws ExceptionFileFormatOrSyntax
+ * @throws ExceptionLoadingFailed
+ * @throws ExceptionPermissionDenied
+ * @throws InterruptedException
+ * @throws ExceptionUnmatchedClosingParentheses
*/
- public MSFfile(String inFile, String type) throws IOException
+ public MSFfile(String inFile, String type) throws IOException, ExceptionFileFormatOrSyntax, ParserConfigurationException, SAXException, ExceptionPermissionDenied, ExceptionLoadingFailed, InterruptedException, ExceptionUnmatchedClosingParentheses
{
super(inFile, type);
}
- public MSFfile(FileParse source) throws IOException
+ public MSFfile(FileParse source) throws IOException, ExceptionFileFormatOrSyntax, ParserConfigurationException, SAXException, ExceptionPermissionDenied, ExceptionLoadingFailed, InterruptedException, ExceptionUnmatchedClosingParentheses
{
super(source);
}
{
// Replace all internal gaps with . and external spaces with ~
s[i] = new Sequence(seqs[i].getName(), seqs[i].getSequenceAsString()
- .replace('-', '.'));
+ .replace('-', '.'), seqs[i].getStart(),seqs[i].getEnd());
StringBuffer sb = new StringBuffer();
sb.append(s[i].getSequence());