Package gov.nasa.gsfc.spdf.ssc
Class QueryResultsReader
- java.lang.Object
-
- gov.nasa.gsfc.spdf.ssc.QueryResultsReader
-
public class QueryResultsReader extends java.lang.ObjectThis 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 aJAXBElement<Conjunctions>represention of the output.static gov.nasa.gsfc.sscweb.schema.FormatOptionsgetRequiredFormatOptions()Creates a FormatOptions object that specifies the format this class needs to be able to parse the query output.static voidmain(java.lang.String[] args)Class tester.
-
-
-
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, SSCExceptionRead the SSC query output and produces aJAXBElement<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.ExceptionClass tester.- Parameters:
args- command line arguments. args[0] = name of file containing the SSC query output.- Throws:
java.lang.Exception- if any exception occurs.
-
-