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!
*
*/
public AlignFile()
{
- // Shouldn't we init data structures
+ // Shouldn't we init data structures (JBPNote: not sure - initData is for initialising the structures used for reading from a datasource, and the bare constructor hasn't got any datasource)
initData();
}
* 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.