Class QueryResultsReader


  • public class QueryResultsReader
    extends java.lang.Object
    This class reads the results from the SSC query server and produces a JAXB object representation of the results.
    Author:
    B. Harris
    • Constructor Summary

      Constructors 
      Constructor Description
      QueryResultsReader()
      Creates a QueryResultsReader.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<gov.nasa.gsfc.sscweb.schema.Conjunction> getConjunctions​(java.io.BufferedReader results)
      Read the SSC query output and produces a JAXBElement<Conjunctions> represention of the output.
      static gov.nasa.gsfc.sscweb.schema.FormatOptions getRequiredFormatOptions()
      Creates a FormatOptions object that specifies the format this class needs to be able to parse the query output.
      static void main​(java.lang.String[] args)
      Class tester.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • QueryResultsReader

        public QueryResultsReader()
                           throws javax.xml.datatype.DatatypeConfigurationException
        Creates a QueryResultsReader.
        Throws:
        javax.xml.datatype.DatatypeConfigurationException - if unable to instaniate a DatatypeFactory.
    • Method Detail

      • getRequiredFormatOptions

        public static gov.nasa.gsfc.sscweb.schema.FormatOptions getRequiredFormatOptions()
        Creates a FormatOptions object that specifies the format this class needs to be able to parse the query output.
        Returns:
        a FormatOptions object that specifies the format this class needs to be able to parse the query output.
      • getConjunctions

        public java.util.List<gov.nasa.gsfc.sscweb.schema.Conjunction> getConjunctions​(java.io.BufferedReader results)
                                                                                throws java.io.IOException,
                                                                                       SSCException
        Read the SSC query output and produces a JAXBElement<Conjunctions> represention of the output.
        Parameters:
        results - BufferedReader connected to the query results.
        Returns:
        JAXBElement<Conjunctions> representation of the SSC query output.
        Throws:
        java.io.IOException - if an I/O exception occurs.
        SSCException - if an SSC exception occurs.
      • main

        public static void main​(java.lang.String[] args)
                         throws java.lang.Exception
        Class tester.
        Parameters:
        args - command line arguments. args[0] = name of file containing the SSC query output.
        Throws:
        java.lang.Exception - if any exception occurs.