import java.awt.event.*;
import javax.swing.*;
-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.gui.*;
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) throws Exception
{
this.pdbentry = pdbentry;
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.*;
*/
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 Exception
{
super(inFile, inType);
}
- public PDBfile(FileParse source) throws IOException, ExceptionFileFormatOrSyntax, ParserConfigurationException, SAXException, ExceptionPermissionDenied, ExceptionLoadingFailed, InterruptedException, ExceptionUnmatchedClosingParentheses
+ public PDBfile(FileParse source) throws Exception
{
super(source);
}
return null;
}
- public void parse() throws IOException, ExceptionFileFormatOrSyntax, ParserConfigurationException, SAXException, ExceptionPermissionDenied, ExceptionLoadingFailed, InterruptedException
+ public void parse() throws Exception
{
// TODO set the filename sensibly - try using data source name.
id = safeName(getDataName());
* @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 Exception\r
{\r
\r
TCoffeeScoreFile file = new TCoffeeScoreFile(source,\r
* assocate the given PDB file with
* @param choice
* @param sequence
- * @throws SAXException
- * @throws ParserConfigurationException
- * @throws ExceptionFileFormatOrSyntax
- * @throws ExceptionLoadingFailed
- * @throws ExceptionPermissionDenied
- * @throws InterruptedException
- * @throws ExceptionUnmatchedClosingParentheses
+ * @throws IOException
*/
- public PDBEntry associatePdbWithSeq(String choice, String protocol, SequenceI sequence, boolean prompt) throws ExceptionFileFormatOrSyntax, ParserConfigurationException, SAXException, ExceptionPermissionDenied, ExceptionLoadingFailed, InterruptedException, ExceptionUnmatchedClosingParentheses
+ public PDBEntry associatePdbWithSeq(String choice, String protocol, SequenceI sequence, boolean prompt) throws Exception
{
PDBEntry entry = new PDBEntry();
try
oal = null;
}
- public void pdbFromFile_actionPerformed() throws ExceptionFileFormatOrSyntax, ParserConfigurationException, SAXException, ExceptionPermissionDenied, ExceptionLoadingFailed, InterruptedException, ExceptionUnmatchedClosingParentheses
+ public void pdbFromFile_actionPerformed() throws IOException
{
jalview.io.JalviewFileChooser chooser = new jalview.io.JalviewFileChooser(
jalview.bin.Cache.getProperty("LAST_DIRECTORY"));
* 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
+ * @throws Exception
*/
- public AlignFile(String inFile, String type) throws IOException, ExceptionFileFormatOrSyntax, ParserConfigurationException, SAXException, ExceptionPermissionDenied, ExceptionLoadingFailed, InterruptedException, ExceptionUnmatchedClosingParentheses
+ public AlignFile(String inFile, String type) throws Exception
{
super(inFile, type);
initData();
* off.
*
* @param source
- * @throws IOException
- * @throws SAXException
- * @throws ParserConfigurationException
- * @throws ExceptionFileFormatOrSyntax
- * @throws ExceptionLoadingFailed
- * @throws ExceptionPermissionDenied
- * @throws InterruptedException
- * @throws ExceptionUnmatchedClosingParentheses
+ * @throws Exception
*/
- public AlignFile(FileParse source) throws IOException, ExceptionFileFormatOrSyntax, ParserConfigurationException, SAXException, ExceptionPermissionDenied, ExceptionLoadingFailed, InterruptedException, ExceptionUnmatchedClosingParentheses
+ public AlignFile(FileParse source) throws Exception
{
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 Exception;
/**
* Print out in alignment file format the Sequences in the seqs Vector.
* DOCUMENT ME!
* @param type
* DOCUMENT ME!
- *
- * @throws IOException
- * DOCUMENT ME!
- * @throws SAXException
- * @throws ParserConfigurationException
- * @throws ExceptionFileFormatOrSyntax
- * @throws ExceptionLoadingFailed
- * @throws ExceptionPermissionDenied
- * @throws InterruptedException
- * @throws ExceptionUnmatchedClosingParentheses
+ * @throws Exception
*/
- public BLCFile(String inFile, String type) throws IOException, ExceptionFileFormatOrSyntax, ParserConfigurationException, SAXException, ExceptionPermissionDenied, ExceptionLoadingFailed, InterruptedException, ExceptionUnmatchedClosingParentheses
+ public BLCFile(String inFile, String type) throws Exception
{
super(inFile, type);
}
- public BLCFile(FileParse source) throws IOException, ExceptionFileFormatOrSyntax, ParserConfigurationException, SAXException, ExceptionPermissionDenied, ExceptionLoadingFailed, InterruptedException, ExceptionUnmatchedClosingParentheses
+ public BLCFile(FileParse source) throws Exception
{
super(source);
}
{
}
- public ClustalFile(String inFile, String type) throws IOException, ExceptionFileFormatOrSyntax, ParserConfigurationException, SAXException, ExceptionPermissionDenied, ExceptionLoadingFailed, InterruptedException, ExceptionUnmatchedClosingParentheses
+ public ClustalFile(String inFile, String type) throws Exception
{
super(inFile, type);
}
- public ClustalFile(FileParse source) throws IOException, ExceptionFileFormatOrSyntax, ParserConfigurationException, SAXException, ExceptionPermissionDenied, ExceptionLoadingFailed, InterruptedException, ExceptionUnmatchedClosingParentheses
+ public ClustalFile(FileParse source) throws Exception
{
super(source);
}
* DOCUMENT ME!
* @param type
* DOCUMENT ME!
- *
- * @throws IOException
- * DOCUMENT ME!
- * @throws SAXException
- * @throws ParserConfigurationException
- * @throws ExceptionFileFormatOrSyntax
- * @throws ExceptionLoadingFailed
- * @throws ExceptionPermissionDenied
- * @throws InterruptedException
- * @throws ExceptionUnmatchedClosingParentheses
+ * @throws Exception
*/
- public FastaFile(String inFile, String type) throws IOException, ExceptionFileFormatOrSyntax, ParserConfigurationException, SAXException, ExceptionPermissionDenied, ExceptionLoadingFailed, InterruptedException, ExceptionUnmatchedClosingParentheses
+ public FastaFile(String inFile, String type) throws Exception
{
super(inFile, type);
}
- public FastaFile(FileParse source) throws IOException, ExceptionFileFormatOrSyntax, ParserConfigurationException, SAXException, ExceptionPermissionDenied, ExceptionLoadingFailed, InterruptedException, ExceptionUnmatchedClosingParentheses
+ public FastaFile(FileParse source) throws Exception
{
super(source);
}
* DOCUMENT ME!
* @param type
* DOCUMENT ME!
- *
- * @throws IOException
- * DOCUMENT ME!
- * @throws SAXException
- * @throws ParserConfigurationException
- * @throws ExceptionFileFormatOrSyntax
- * @throws ExceptionLoadingFailed
- * @throws ExceptionPermissionDenied
- * @throws InterruptedException
- * @throws ExceptionUnmatchedClosingParentheses
+ * @throws Exception
*/
- public FeaturesFile(String inFile, String type) throws IOException,
- ExceptionFileFormatOrSyntax, ParserConfigurationException,
- SAXException, ExceptionPermissionDenied, ExceptionLoadingFailed,
- InterruptedException, ExceptionUnmatchedClosingParentheses
+ public FeaturesFile(String inFile, String type) throws Exception
{
super(inFile, type);
}
- public FeaturesFile(FileParse source) throws IOException,
- ExceptionFileFormatOrSyntax, ParserConfigurationException,
- SAXException, ExceptionPermissionDenied, ExceptionLoadingFailed,
- InterruptedException, ExceptionUnmatchedClosingParentheses
+ public FeaturesFile(FileParse source) throws Exception
{
super(source);
}
* DOCUMENT ME!
* @param type
* DOCUMENT ME!
- *
- * @throws IOException
- * DOCUMENT ME!
- * @throws SAXException
- * @throws ParserConfigurationException
- * @throws ExceptionFileFormatOrSyntax
- * @throws ExceptionLoadingFailed
- * @throws ExceptionPermissionDenied
- * @throws InterruptedException
- * @throws ExceptionUnmatchedClosingParentheses
+ * @throws Exception
*/
- public JPredFile(String inFile, String type) throws IOException, ExceptionFileFormatOrSyntax, ParserConfigurationException, SAXException, ExceptionPermissionDenied, ExceptionLoadingFailed, InterruptedException, ExceptionUnmatchedClosingParentheses
+ public JPredFile(String inFile, String type) throws Exception
{
super(inFile, type);
}
- public JPredFile(FileParse source) throws IOException, ExceptionFileFormatOrSyntax, ParserConfigurationException, SAXException, ExceptionPermissionDenied, ExceptionLoadingFailed, InterruptedException, ExceptionUnmatchedClosingParentheses
+ public JPredFile(FileParse source) throws Exception
{
super(source);
}
*
* @param args
* DOCUMENT ME!
- * @throws SAXException
- * @throws ParserConfigurationException
- * @throws ExceptionFileFormatOrSyntax
- * @throws ExceptionLoadingFailed
- * @throws ExceptionPermissionDenied
- * @throws InterruptedException
- * @throws ExceptionUnmatchedClosingParentheses
+ * @throws Exception
*/
- public static void main(String[] args) throws ExceptionFileFormatOrSyntax, ParserConfigurationException, SAXException, ExceptionPermissionDenied, ExceptionLoadingFailed, InterruptedException, ExceptionUnmatchedClosingParentheses
+ public static void main(String[] args) throws Exception
{
try
{
* DOCUMENT ME!
* @param type
* DOCUMENT ME!
- *
- * @throws IOException
- * DOCUMENT ME!
- * @throws SAXException
- * @throws ParserConfigurationException
- * @throws ExceptionFileFormatOrSyntax
- * @throws ExceptionLoadingFailed
- * @throws ExceptionPermissionDenied
- * @throws InterruptedException
- * @throws ExceptionUnmatchedClosingParentheses
+ * @throws Exception
*/
- public MSFfile(String inFile, String type) throws IOException, ExceptionFileFormatOrSyntax, ParserConfigurationException, SAXException, ExceptionPermissionDenied, ExceptionLoadingFailed, InterruptedException, ExceptionUnmatchedClosingParentheses
+ public MSFfile(String inFile, String type) throws Exception
{
super(inFile, type);
}
- public MSFfile(FileParse source) throws IOException, ExceptionFileFormatOrSyntax, ParserConfigurationException, SAXException, ExceptionPermissionDenied, ExceptionLoadingFailed, InterruptedException, ExceptionUnmatchedClosingParentheses
+ public MSFfile(FileParse source) throws Exception
{
super(source);
}
{
}
- public PIRFile(String inFile, String type) throws IOException, ExceptionFileFormatOrSyntax, ParserConfigurationException, SAXException, ExceptionPermissionDenied, ExceptionLoadingFailed, InterruptedException, ExceptionUnmatchedClosingParentheses
+ public PIRFile(String inFile, String type) throws Exception
{
super(inFile, type);
}
- public PIRFile(FileParse source) throws IOException, ExceptionFileFormatOrSyntax, ParserConfigurationException, SAXException, ExceptionPermissionDenied, ExceptionLoadingFailed, InterruptedException, ExceptionUnmatchedClosingParentheses
+ public PIRFile(FileParse source) throws Exception
{
super(source);
}
{
}
- public PfamFile(String inFile, String type) throws IOException, ExceptionFileFormatOrSyntax, ParserConfigurationException, SAXException, ExceptionPermissionDenied, ExceptionLoadingFailed, InterruptedException, ExceptionUnmatchedClosingParentheses
+ public PfamFile(String inFile, String type) throws Exception
{
super(inFile, type);
}
- public PfamFile(FileParse source) throws IOException, ExceptionFileFormatOrSyntax, ParserConfigurationException, SAXException, ExceptionPermissionDenied, ExceptionLoadingFailed, InterruptedException, ExceptionUnmatchedClosingParentheses
+ public PfamFile(FileParse source) throws Exception
{
super(source);
}
* DOCUMENT ME!
* @param type
* DOCUMENT ME!
- *
- * @throws IOException
- * DOCUMENT ME!
- * @throws SAXException
- * @throws ParserConfigurationException
- * @throws ExceptionFileFormatOrSyntax
- * @throws ExceptionLoadingFailed
- * @throws ExceptionPermissionDenied
- * @throws InterruptedException
- * @throws ExceptionUnmatchedClosingParentheses
+ * @throws Exception
*/
- public PileUpfile(String inFile, String type) throws IOException, ExceptionFileFormatOrSyntax, ParserConfigurationException, SAXException, ExceptionPermissionDenied, ExceptionLoadingFailed, InterruptedException, ExceptionUnmatchedClosingParentheses
+ public PileUpfile(String inFile, String type) throws Exception
{
super(inFile, type);
}
- public PileUpfile(FileParse source) throws IOException, ExceptionFileFormatOrSyntax, ParserConfigurationException, SAXException, ExceptionPermissionDenied, ExceptionLoadingFailed, InterruptedException, ExceptionUnmatchedClosingParentheses
+ public PileUpfile(FileParse source) throws Exception
{
super(source);
}
{
}
- public SimpleBlastFile(String inFile, String type) throws IOException, ExceptionFileFormatOrSyntax, ParserConfigurationException, SAXException, ExceptionPermissionDenied, ExceptionLoadingFailed, InterruptedException, ExceptionUnmatchedClosingParentheses
+ public SimpleBlastFile(String inFile, String type) throws Exception
{
super(inFile, type);
}
- public SimpleBlastFile(FileParse source) throws IOException, ExceptionFileFormatOrSyntax, ParserConfigurationException, SAXException, ExceptionPermissionDenied, ExceptionLoadingFailed, InterruptedException, ExceptionUnmatchedClosingParentheses
+ public SimpleBlastFile(FileParse source) throws Exception
{
super(source);
}
{\r
}\r
\r
- public StockholmFile(String inFile, String type) throws IOException, ExceptionFileFormatOrSyntax, ParserConfigurationException, SAXException, ExceptionPermissionDenied, ExceptionLoadingFailed, InterruptedException, ExceptionUnmatchedClosingParentheses\r
+ public StockholmFile(String inFile, String type) throws Exception \r
{\r
super(inFile, type);\r
}\r
\r
- public StockholmFile(FileParse source) throws IOException, ExceptionFileFormatOrSyntax, ParserConfigurationException, SAXException, ExceptionPermissionDenied, ExceptionLoadingFailed, InterruptedException, ExceptionUnmatchedClosingParentheses\r
+ public StockholmFile(FileParse source) throws Exception \r
{\r
super(source);\r
}\r
* If there is an error with the input file\r
* @throws ExceptionUnmatchedClosingParentheses \r
*/\r
- public void parse() throws IOException, ExceptionUnmatchedClosingParentheses\r
+ public void parse()\r
{\r
FileReader fr = null;\r
fr = new FileReader(inFile); \r
*/
public class TCoffeeScoreFile extends AlignFile {
- public TCoffeeScoreFile(String inFile, String type) throws IOException, ExceptionFileFormatOrSyntax, ParserConfigurationException, SAXException, ExceptionPermissionDenied, ExceptionLoadingFailed, InterruptedException, ExceptionUnmatchedClosingParentheses
+ public TCoffeeScoreFile(String inFile, String type) throws Exception
{
super(inFile, type);
}
- public TCoffeeScoreFile(FileParse source) throws IOException, ExceptionFileFormatOrSyntax, ParserConfigurationException, SAXException, ExceptionPermissionDenied, ExceptionLoadingFailed, InterruptedException, ExceptionUnmatchedClosingParentheses
+ public TCoffeeScoreFile(FileParse source) throws Exception
{
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 Exception {
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() throws Exception {
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 Exception {
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 Exception {
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 Exception {
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 Exception {
TCoffeeScoreFile parser = new TCoffeeScoreFile(SCORE_FILE.getPath(),FormatAdapter.FILE);
assertTrue(parser.getWarningMessage(),parser.isValid());