From b1fba751ea5ad4f84c71e3d2c388a6e650c8a8e2 Mon Sep 17 00:00:00 2001 From: jprocter Date: Mon, 20 Aug 2012 16:04:10 +0100 Subject: [PATCH] JAL-1140 use the Reader provided by the jalview.io.FileParse framework --- src/jalview/io/RnamlFile.java | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/jalview/io/RnamlFile.java b/src/jalview/io/RnamlFile.java index b1589b6..c93201f 100644 --- a/src/jalview/io/RnamlFile.java +++ b/src/jalview/io/RnamlFile.java @@ -93,16 +93,7 @@ public class RnamlFile extends AlignFile @SuppressWarnings("unchecked") public void parse() throws FileNotFoundException, ExceptionPermissionDenied, ExceptionLoadingFailed, ExceptionFileFormatOrSyntax { - FileReader fr = null; - fr = new FileReader(inFile); - - BufferedReader r = new BufferedReader (fr); - - //ArrayList seq =new ArrayList(); - //System.out.println(r); - - - result = RNAFactory.loadSecStrRNAML(r); + result = RNAFactory.loadSecStrRNAML(getReader()); System.out.println("this is the secondary scructure:" +result.size()); //System.out.println("this is the secondary scructure:" +result.toString()); -- 1.7.10.2