show vamsasId for aligments.
[vamsas.git] / src / org / vamsas / test / simpleclient / ArchiveReader.java
index 5f7fd6a..d7959b4 100644 (file)
@@ -10,6 +10,10 @@ import org.vamsas.objects.core.VAMSAS;
 import org.vamsas.objects.core.VamsasDocument;
 
 public class ArchiveReader {
+  /**
+   * tests VamsasArchiveReader archive reader on a vamsas jar file
+   * @param args
+   */
   public static void main(String args[]) {
     
     try {
@@ -19,7 +23,7 @@ public class ArchiveReader {
       if (var.isValid()) {
         InputStreamReader vdoc = new InputStreamReader(var.getVamsasDocumentStream());
         VamsasDocument doc = VamsasDocument.unmarshal(vdoc);
-        if (ArchiveReports.reportDocument(doc, var)) {
+        if (ArchiveReports.reportDocument(doc, var, true, System.out)) {
           roots = doc.getVAMSAS();
         }
       } else {
@@ -37,7 +41,7 @@ public class ArchiveReader {
           }
         }
       }
-      if (!ArchiveReports.rootReport(roots))
+      if (!ArchiveReports.rootReport(roots, true, System.out))
         System.err.print(args[0]+" is not a valid vamsas archive.");
     } catch (Exception e) {
       e.printStackTrace(System.err);