String tmpPDBFile;
public PDBViewer(PDBEntry pdbentry, SequenceI[] seq, String[] chains,
- AlignmentPanel ap, String protocol) throws ExceptionFileFormatOrSyntax, ParserConfigurationException, SAXException, ExceptionPermissionDenied, ExceptionLoadingFailed, InterruptedException, ExceptionUnmatchedClosingParentheses
-
+ AlignmentPanel ap, String protocol)
{
this.pdbentry = pdbentry;
this.seq = seq;
import java.awt.*;
-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.analysis.AlignSeq;
import jalview.datamodel.*;
import jalview.io.FileParse;
*/
boolean VisibleChainAnnotation = false;
- public PDBfile(String inFile, String inType) throws IOException, ExceptionFileFormatOrSyntax, ParserConfigurationException, SAXException, ExceptionPermissionDenied, ExceptionLoadingFailed, InterruptedException, ExceptionUnmatchedClosingParentheses
+ public PDBfile(String inFile, String inType) throws IOException
{
super(inFile, inType);
}
- public PDBfile(FileParse source) throws IOException, ExceptionFileFormatOrSyntax, ParserConfigurationException, SAXException, ExceptionPermissionDenied, ExceptionLoadingFailed, InterruptedException, ExceptionUnmatchedClosingParentheses
+ public PDBfile(FileParse source) throws IOException
{
super(source);
}
return null;
}
- public void parse() throws IOException, ExceptionFileFormatOrSyntax, ParserConfigurationException, SAXException, ExceptionPermissionDenied, ExceptionLoadingFailed, InterruptedException
+ public void parse() throws IOException
{
// TODO set the filename sensibly - try using data source name.
id = safeName(getDataName());
import java.awt.event.WindowAdapter;\r
import java.awt.event.WindowEvent;\r
import java.io.IOException;\r
-import java.io.InputStreamReader;\r
import java.net.URL;\r
import java.net.URLEncoder;\r
import java.util.Enumeration;\r
import java.util.StringTokenizer;\r
import java.util.Vector;\r
\r
-import javax.xml.parsers.ParserConfigurationException;\r
-\r
-import org.xml.sax.SAXException;\r
-\r
-import fr.orsay.lri.varna.exceptions.ExceptionFileFormatOrSyntax;\r
-import fr.orsay.lri.varna.exceptions.ExceptionLoadingFailed;\r
-import fr.orsay.lri.varna.exceptions.ExceptionPermissionDenied;\r
-import fr.orsay.lri.varna.exceptions.ExceptionUnmatchedClosingParentheses;\r
\r
public class AlignFrame extends EmbmenuFrame implements ActionListener,\r
ItemListener, KeyListener\r
* File/URL/T-COFFEE score file contents\r
* @throws IOException\r
* @return true if alignment was annotated with data from source\r
- * @throws SAXException\r
- * @throws ParserConfigurationException\r
- * @throws ExceptionFileFormatOrSyntax\r
- * @throws ExceptionLoadingFailed\r
- * @throws ExceptionPermissionDenied\r
- * @throws InterruptedException\r
- * @throws ExceptionUnmatchedClosingParentheses\r
*/\r
- public boolean loadScoreFile(String source) throws IOException,\r
- ExceptionFileFormatOrSyntax, ParserConfigurationException,\r
- SAXException, ExceptionPermissionDenied, ExceptionLoadingFailed,\r
- InterruptedException, ExceptionUnmatchedClosingParentheses\r
+ public boolean loadScoreFile(String source) throws IOException\r
{\r
\r
TCoffeeScoreFile file = new TCoffeeScoreFile(source,\r
package jalview.datamodel;
import java.awt.*;
-import java.util.ArrayList;
-
-import fr.orsay.lri.varna.models.rna.RNA;
/**
* DOCUMENT ME!
import java.io.IOException;
import java.util.Map;
-import javax.xml.parsers.ParserConfigurationException;
-
import org.jmol.api.JmolStatusListener;
import org.jmol.api.JmolViewer;
import org.jmol.constant.EnumCallback;
-import org.jmol.constant.EnumStructure;
-import org.jmol.modelset.Chain;
import org.jmol.modelset.Group;
import org.jmol.modelset.Model;
import org.jmol.modelset.ModelSet;
import org.jmol.modelsetbio.BioPolymer;
import org.jmol.viewer.Viewer;
import org.openscience.jmol.app.JmolApp;
-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.AlignmentAnnotation;
import jalview.datamodel.Annotation;
import jalview.datamodel.PDBEntry;
Viewer viewer = null;
public PDBFileWithJmol(String inFile, String type)
- throws ExceptionUnmatchedClosingParentheses, IOException,
- ExceptionFileFormatOrSyntax, ParserConfigurationException,
- SAXException, ExceptionPermissionDenied, ExceptionLoadingFailed,
- InterruptedException
+ throws IOException
{
super(inFile, type);
}
* @see jalview.io.AlignFile#parse()
*/
@Override
- public void parse() throws IOException, ExceptionFileFormatOrSyntax,
- ParserConfigurationException, SAXException,
- ExceptionPermissionDenied, ExceptionLoadingFailed,
- InterruptedException, ExceptionUnmatchedClosingParentheses
+ public void parse() throws IOException
{
Viewer jmd = getJmolData();
jmd.openReader(getDataName(), getDataName(), getReader());
public class AssociatePdbFileWithSeq
{
-/**
- * assocate the given PDB file with
- * @param choice
- * @param sequence
- * @throws SAXException
- * @throws ParserConfigurationException
- * @throws ExceptionFileFormatOrSyntax
- * @throws ExceptionLoadingFailed
- * @throws ExceptionPermissionDenied
- * @throws InterruptedException
- * @throws ExceptionUnmatchedClosingParentheses
- */
- public PDBEntry associatePdbWithSeq(String choice, String protocol, SequenceI sequence, boolean prompt) throws ExceptionFileFormatOrSyntax, ParserConfigurationException, SAXException, ExceptionPermissionDenied, ExceptionLoadingFailed, InterruptedException, ExceptionUnmatchedClosingParentheses
+ /**
+ * assocate the given PDB file with
+ *
+ * @param choice
+ * @param sequence
+ */
+ public PDBEntry associatePdbWithSeq(String choice, String protocol,
+ SequenceI sequence, boolean prompt)
{
PDBEntry entry = new PDBEntry();
try
{
-
- System.out.println("This is a annotation PDB");
-
-
- MCview.PDBfile pdbfile = new MCview.PDBfile(choice,
- protocol);
+ MCview.PDBfile pdbfile = new MCview.PDBfile(choice, protocol);
if (pdbfile.id == null)
{
{
entry.setId(pdbfile.id);
}
-
+
} catch (java.io.IOException ex)
{
ex.printStackTrace();
entry.setFile(choice);
sequence.getDatasetSequence().addPDBId(entry);
return entry;
-
}
-
}
{
public void actionPerformed(ActionEvent e)
{
- try {
- pdbFromFile_actionPerformed();
- } catch (ExceptionFileFormatOrSyntax e1) {
- // TODO Auto-generated catch block
- e1.printStackTrace();
- } catch (ParserConfigurationException e1) {
- // TODO Auto-generated catch block
- e1.printStackTrace();
- } catch (SAXException e1) {
- // TODO Auto-generated catch block
- e1.printStackTrace();
- } catch (ExceptionPermissionDenied e1) {
- // TODO Auto-generated catch block
- e1.printStackTrace();
- } catch (ExceptionLoadingFailed e1) {
- // TODO Auto-generated catch block
- e1.printStackTrace();
- } catch (InterruptedException e1) {
- // TODO Auto-generated catch block
- e1.printStackTrace();
- } catch (ExceptionUnmatchedClosingParentheses e1) {
- // TODO Auto-generated catch block
- e1.printStackTrace();
- }
+ pdbFromFile_actionPerformed();
}
});
enterPDB.setText("Enter PDB Id");
oal = null;
}
- public void pdbFromFile_actionPerformed() throws ExceptionFileFormatOrSyntax, ParserConfigurationException, SAXException, ExceptionPermissionDenied, ExceptionLoadingFailed, InterruptedException, ExceptionUnmatchedClosingParentheses
+ public void pdbFromFile_actionPerformed()
{
jalview.io.JalviewFileChooser chooser = new jalview.io.JalviewFileChooser(
jalview.bin.Cache.getProperty("LAST_DIRECTORY"));
import java.util.Hashtable;
import java.util.Vector;
-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;
-
/**
* DOCUMENT ME!
*
* Filename to read from.
* @param type
* What type of file to read from (File, URL)
- * @throws SAXException
- * @throws ParserConfigurationException
- * @throws ExceptionFileFormatOrSyntax
- * @throws ExceptionLoadingFailed
- * @throws ExceptionPermissionDenied
- * @throws InterruptedException
- * @throws ExceptionUnmatchedClosingParentheses
*/
- public AlignFile(String inFile, String type) throws IOException, ExceptionFileFormatOrSyntax, ParserConfigurationException, SAXException, ExceptionPermissionDenied, ExceptionLoadingFailed, InterruptedException, ExceptionUnmatchedClosingParentheses
+ public AlignFile(String inFile, String type) throws IOException
{
super(inFile, type);
initData();
*
* @param source
* @throws IOException
- * @throws SAXException
- * @throws ParserConfigurationException
- * @throws ExceptionFileFormatOrSyntax
- * @throws ExceptionLoadingFailed
- * @throws ExceptionPermissionDenied
- * @throws InterruptedException
- * @throws ExceptionUnmatchedClosingParentheses
*/
- public AlignFile(FileParse source) throws IOException, ExceptionFileFormatOrSyntax, ParserConfigurationException, SAXException, ExceptionPermissionDenied, ExceptionLoadingFailed, InterruptedException, ExceptionUnmatchedClosingParentheses
+ public AlignFile(FileParse source) throws IOException
{
super(source);
initData();
/**
* This method must be implemented to parse the contents of the file.
- * @throws ExceptionFileFormatOrSyntax
- * @throws SAXException
- * @throws ParserConfigurationException
- * @throws ExceptionLoadingFailed
- * @throws ExceptionPermissionDenied
- * @throws InterruptedException
- * @throws ExceptionUnmatchedClosingParentheses
*/
- public abstract void parse() throws IOException, ExceptionFileFormatOrSyntax, ParserConfigurationException, SAXException, ExceptionPermissionDenied, ExceptionLoadingFailed, InterruptedException, ExceptionUnmatchedClosingParentheses;
+ public abstract void parse() throws IOException;
/**
* Print out in alignment file format the Sequences in the seqs Vector.
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.*;
/**
*
* @throws IOException
* DOCUMENT ME!
- * @throws SAXException
- * @throws ParserConfigurationException
- * @throws ExceptionFileFormatOrSyntax
- * @throws ExceptionLoadingFailed
- * @throws ExceptionPermissionDenied
- * @throws InterruptedException
- * @throws ExceptionUnmatchedClosingParentheses
*/
- public BLCFile(String inFile, String type) throws IOException, ExceptionFileFormatOrSyntax, ParserConfigurationException, SAXException, ExceptionPermissionDenied, ExceptionLoadingFailed, InterruptedException, ExceptionUnmatchedClosingParentheses
+ public BLCFile(String inFile, String type) throws IOException
{
super(inFile, type);
}
- public BLCFile(FileParse source) throws IOException, ExceptionFileFormatOrSyntax, ParserConfigurationException, SAXException, ExceptionPermissionDenied, ExceptionLoadingFailed, InterruptedException, ExceptionUnmatchedClosingParentheses
+ public BLCFile(FileParse source) throws IOException
{
super(source);
}
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.*;
{
}
- public ClustalFile(String inFile, String type) throws IOException, ExceptionFileFormatOrSyntax, ParserConfigurationException, SAXException, ExceptionPermissionDenied, ExceptionLoadingFailed, InterruptedException, ExceptionUnmatchedClosingParentheses
+ public ClustalFile(String inFile, String type) throws IOException
{
super(inFile, type);
}
- public ClustalFile(FileParse source) throws IOException, ExceptionFileFormatOrSyntax, ParserConfigurationException, SAXException, ExceptionPermissionDenied, ExceptionLoadingFailed, InterruptedException, ExceptionUnmatchedClosingParentheses
+ public ClustalFile(FileParse source) throws IOException
{
super(source);
}
import java.io.*;
-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.*;
*
* @throws IOException
* DOCUMENT ME!
- * @throws SAXException
- * @throws ParserConfigurationException
- * @throws ExceptionFileFormatOrSyntax
- * @throws ExceptionLoadingFailed
- * @throws ExceptionPermissionDenied
- * @throws InterruptedException
- * @throws ExceptionUnmatchedClosingParentheses
*/
- public FastaFile(String inFile, String type) throws IOException, ExceptionFileFormatOrSyntax, ParserConfigurationException, SAXException, ExceptionPermissionDenied, ExceptionLoadingFailed, InterruptedException, ExceptionUnmatchedClosingParentheses
+ public FastaFile(String inFile, String type) throws IOException
{
super(inFile, type);
}
- public FastaFile(FileParse source) throws IOException, ExceptionFileFormatOrSyntax, ParserConfigurationException, SAXException, ExceptionPermissionDenied, ExceptionLoadingFailed, InterruptedException, ExceptionUnmatchedClosingParentheses
+ public FastaFile(FileParse source) throws IOException
{
super(source);
}
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.analysis.SequenceIdMatcher;
import jalview.datamodel.*;
import jalview.schemes.*;
*
* @throws IOException
* DOCUMENT ME!
- * @throws SAXException
- * @throws ParserConfigurationException
- * @throws ExceptionFileFormatOrSyntax
- * @throws ExceptionLoadingFailed
- * @throws ExceptionPermissionDenied
- * @throws InterruptedException
- * @throws ExceptionUnmatchedClosingParentheses
*/
- public FeaturesFile(String inFile, String type) throws IOException,
- ExceptionFileFormatOrSyntax, ParserConfigurationException,
- SAXException, ExceptionPermissionDenied, ExceptionLoadingFailed,
- InterruptedException, ExceptionUnmatchedClosingParentheses
+ public FeaturesFile(String inFile, String type) throws IOException
{
super(inFile, type);
}
- public FeaturesFile(FileParse source) throws IOException,
- ExceptionFileFormatOrSyntax, ParserConfigurationException,
- SAXException, ExceptionPermissionDenied, ExceptionLoadingFailed,
- InterruptedException, ExceptionUnmatchedClosingParentheses
+ public FeaturesFile(FileParse source) throws IOException
{
super(source);
}
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.*;
/**
*
* @throws IOException
* DOCUMENT ME!
- * @throws SAXException
- * @throws ParserConfigurationException
- * @throws ExceptionFileFormatOrSyntax
- * @throws ExceptionLoadingFailed
- * @throws ExceptionPermissionDenied
- * @throws InterruptedException
- * @throws ExceptionUnmatchedClosingParentheses
*/
- public JPredFile(String inFile, String type) throws IOException, ExceptionFileFormatOrSyntax, ParserConfigurationException, SAXException, ExceptionPermissionDenied, ExceptionLoadingFailed, InterruptedException, ExceptionUnmatchedClosingParentheses
+ public JPredFile(String inFile, String type) throws IOException
{
super(inFile, type);
}
- public JPredFile(FileParse source) throws IOException, ExceptionFileFormatOrSyntax, ParserConfigurationException, SAXException, ExceptionPermissionDenied, ExceptionLoadingFailed, InterruptedException, ExceptionUnmatchedClosingParentheses
+ public JPredFile(FileParse source) throws IOException
{
super(source);
}
*
* @param args
* DOCUMENT ME!
- * @throws SAXException
- * @throws ParserConfigurationException
- * @throws ExceptionFileFormatOrSyntax
- * @throws ExceptionLoadingFailed
- * @throws ExceptionPermissionDenied
- * @throws InterruptedException
- * @throws ExceptionUnmatchedClosingParentheses
*/
- public static void main(String[] args) throws ExceptionFileFormatOrSyntax, ParserConfigurationException, SAXException, ExceptionPermissionDenied, ExceptionLoadingFailed, InterruptedException, ExceptionUnmatchedClosingParentheses
+ public static void main(String[] args)
{
try
{
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, ExceptionFileFormatOrSyntax, ParserConfigurationException, SAXException, ExceptionPermissionDenied, ExceptionLoadingFailed, InterruptedException, ExceptionUnmatchedClosingParentheses
+ public MSFfile(String inFile, String type) throws IOException
{
super(inFile, type);
}
- public MSFfile(FileParse source) throws IOException, ExceptionFileFormatOrSyntax, ParserConfigurationException, SAXException, ExceptionPermissionDenied, ExceptionLoadingFailed, InterruptedException, ExceptionUnmatchedClosingParentheses
+ public MSFfile(FileParse source) throws IOException
{
super(source);
}
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.*;
public class PIRFile extends AlignFile
{
}
- public PIRFile(String inFile, String type) throws IOException, ExceptionFileFormatOrSyntax, ParserConfigurationException, SAXException, ExceptionPermissionDenied, ExceptionLoadingFailed, InterruptedException, ExceptionUnmatchedClosingParentheses
+ public PIRFile(String inFile, String type) throws IOException
{
super(inFile, type);
}
- public PIRFile(FileParse source) throws IOException, ExceptionFileFormatOrSyntax, ParserConfigurationException, SAXException, ExceptionPermissionDenied, ExceptionLoadingFailed, InterruptedException, ExceptionUnmatchedClosingParentheses
+ public PIRFile(FileParse source) throws IOException
{
super(source);
}
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.*;
{
}
- public PfamFile(String inFile, String type) throws IOException, ExceptionFileFormatOrSyntax, ParserConfigurationException, SAXException, ExceptionPermissionDenied, ExceptionLoadingFailed, InterruptedException, ExceptionUnmatchedClosingParentheses
+ public PfamFile(String inFile, String type) throws IOException
{
super(inFile, type);
}
- public PfamFile(FileParse source) throws IOException, ExceptionFileFormatOrSyntax, ParserConfigurationException, SAXException, ExceptionPermissionDenied, ExceptionLoadingFailed, InterruptedException, ExceptionUnmatchedClosingParentheses
+ public PfamFile(FileParse source) throws IOException
{
super(source);
}
*/
import java.io.*;
-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 PileUpfile(String inFile, String type) throws IOException, ExceptionFileFormatOrSyntax, ParserConfigurationException, SAXException, ExceptionPermissionDenied, ExceptionLoadingFailed, InterruptedException, ExceptionUnmatchedClosingParentheses
+ public PileUpfile(String inFile, String type) throws IOException
{
super(inFile, type);
}
- public PileUpfile(FileParse source) throws IOException, ExceptionFileFormatOrSyntax, ParserConfigurationException, SAXException, ExceptionPermissionDenied, ExceptionLoadingFailed, InterruptedException, ExceptionUnmatchedClosingParentheses
+ public PileUpfile(FileParse source) throws IOException
{
super(source);
}
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.*;
/**
{
}
- public SimpleBlastFile(String inFile, String type) throws IOException, ExceptionFileFormatOrSyntax, ParserConfigurationException, SAXException, ExceptionPermissionDenied, ExceptionLoadingFailed, InterruptedException, ExceptionUnmatchedClosingParentheses
+ public SimpleBlastFile(String inFile, String type) throws IOException
{
super(inFile, type);
}
- public SimpleBlastFile(FileParse source) throws IOException, ExceptionFileFormatOrSyntax, ParserConfigurationException, SAXException, ExceptionPermissionDenied, ExceptionLoadingFailed, InterruptedException, ExceptionUnmatchedClosingParentheses
+ public SimpleBlastFile(FileParse source) throws IOException
{
super(source);
}
import java.util.regex.Matcher;
import java.util.regex.Pattern;
-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;
-
/**
* A file parse for T-Coffee score ascii format. This file contains the
* alignment consensus for each resude in any sequence.
* @author Paolo Di Tommaso
*
*/
-public class TCoffeeScoreFile extends AlignFile {
-
- public TCoffeeScoreFile(String inFile, String type) throws IOException, ExceptionFileFormatOrSyntax, ParserConfigurationException, SAXException, ExceptionPermissionDenied, ExceptionLoadingFailed, InterruptedException, ExceptionUnmatchedClosingParentheses
+public class TCoffeeScoreFile extends AlignFile
+{
+
+ public TCoffeeScoreFile(String inFile, String type) throws IOException
{
super(inFile, type);
}
- public TCoffeeScoreFile(FileParse source) throws IOException, ExceptionFileFormatOrSyntax, ParserConfigurationException, SAXException, ExceptionPermissionDenied, ExceptionLoadingFailed, InterruptedException, ExceptionUnmatchedClosingParentheses
+ public TCoffeeScoreFile(FileParse source) throws IOException
{
super(source);
}
final static File ALIGN_FILE = new File("test/jalview/io/tcoffee.fasta_aln");
@Test
- public void testReadHeader() throws IOException, FileNotFoundException, ExceptionFileFormatOrSyntax, ParserConfigurationException, SAXException, ExceptionPermissionDenied, ExceptionLoadingFailed, InterruptedException, ExceptionUnmatchedClosingParentheses {
+ public void testReadHeader() throws IOException {
TCoffeeScoreFile scoreFile = new TCoffeeScoreFile(SCORE_FILE.getPath(),AppletFormatAdapter.FILE);
assertTrue(scoreFile.getWarningMessage(),scoreFile.isValid());
@Test
- public void testWrongFile() throws ExceptionFileFormatOrSyntax, ParserConfigurationException, SAXException, ExceptionPermissionDenied, ExceptionLoadingFailed, InterruptedException, ExceptionUnmatchedClosingParentheses {
+ public void testWrongFile() {
try {
TCoffeeScoreFile result = new TCoffeeScoreFile(ALIGN_FILE.getPath(), FormatAdapter.FILE);
assertFalse(result.isValid());
}
@Test
- public void testHeightAndWidth() throws IOException, ExceptionFileFormatOrSyntax, ParserConfigurationException, SAXException, ExceptionPermissionDenied, ExceptionLoadingFailed, InterruptedException, ExceptionUnmatchedClosingParentheses {
+ public void testHeightAndWidth() throws IOException {
TCoffeeScoreFile result = new TCoffeeScoreFile(SCORE_FILE.getPath(), FormatAdapter.FILE);
assertTrue(result.isValid());
assertEquals( 8, result.getHeight() );
}
@Test
- public void testParse() throws IOException, ExceptionFileFormatOrSyntax, ParserConfigurationException, SAXException, ExceptionPermissionDenied, ExceptionLoadingFailed, InterruptedException, ExceptionUnmatchedClosingParentheses {
+ public void testParse() throws IOException {
TCoffeeScoreFile parser = new TCoffeeScoreFile(SCORE_FILE.getPath(), FormatAdapter.FILE);
@Test
- public void testGetAsList() throws IOException, ExceptionFileFormatOrSyntax, ParserConfigurationException, SAXException, ExceptionPermissionDenied, ExceptionLoadingFailed, InterruptedException, ExceptionUnmatchedClosingParentheses {
+ public void testGetAsList() throws IOException {
TCoffeeScoreFile parser = new TCoffeeScoreFile(SCORE_FILE.getPath(),FormatAdapter.FILE);
assertTrue(parser.getWarningMessage(),parser.isValid());
@Test
- public void testGetAsArray() throws IOException, ExceptionFileFormatOrSyntax, ParserConfigurationException, SAXException, ExceptionPermissionDenied, ExceptionLoadingFailed, InterruptedException, ExceptionUnmatchedClosingParentheses {
+ public void testGetAsArray() throws IOException {
TCoffeeScoreFile parser = new TCoffeeScoreFile(SCORE_FILE.getPath(),FormatAdapter.FILE);
assertTrue(parser.getWarningMessage(),parser.isValid());