Dasobert updates, labels and prefix changes
[jalview.git] / src / org / biojava / dasobert / das / DAS_FeatureRetrieve.java
index e6319f1..b65a847 100755 (executable)
@@ -39,6 +39,8 @@ import java.net.ConnectException;
 import java.lang.reflect.Method;
 
 
+
+
 /**
  * A class to perform a DAS features request
  *
@@ -52,6 +54,7 @@ public class DAS_FeatureRetrieve {
     int comeBackLater;
     URL url;
     /**
+     * @param url the URL the features should be downloaded from
      *
      */
     public DAS_FeatureRetrieve(URL url) {
@@ -138,8 +141,7 @@ public class DAS_FeatureRetrieve {
                 comeBackLater = cont_handle.getComBackLater();
             }
             catch ( Exception e){
-              System.out.println("ERROR PARSING RESULT FROM "+url+ "\n"+e+"\n");
-               // e.printStackTrace();
+                e.printStackTrace();
                 logger.log(Level.FINE,"error while parsing response from "+ url);
                 comeBackLater = -1;
                 features = new ArrayList();
@@ -151,6 +153,7 @@ public class DAS_FeatureRetrieve {
         }
     }
 
+
     /** open HttpURLConnection. Recommended way to open
      * HttpURLConnections, since this take care of setting timeouts
      * properly for java 1.4 and 1.5*/
@@ -196,6 +199,7 @@ public class DAS_FeatureRetrieve {
     return huc;
     }
 
+
     private InputStream open(URL url)
     throws java.io.IOException, java.net.ConnectException
     {
@@ -210,7 +214,8 @@ public class DAS_FeatureRetrieve {
 
     }
 
-    /** returns a List of Features */
+    /** returns a List of Features
+     * @return a List of Maps containing the features*/
     public List get_features() {
 
         return features;