public class XsltConverter extends Converter
| Modifier and Type | Field and Description | 
|---|---|
| protected InputStream | avclStreamStream from which AVCL file will be read | 
autoStreamClose, outStream| Constructor and Description | 
|---|
| XsltConverter(File xslFile,
             AvclMission avcl,
             File outFile)Creates the input streams and assigns the local variables assigning conversion
 output sources | 
| XsltConverter(File xslFile,
             File outFile)Creates the input streams and assigns the local variables assigning conversion
 output sources | 
| XsltConverter(File xslFile,
             File avclFile,
             File outFile)Creates the input streams and assigns the local variables assigning conversion
 output sources | 
| XsltConverter(File xslFile,
             OutputStream outStream)Creates the input streams and assigns the local variables assigning conversion
 output sources | 
| XsltConverter(String xslFile,
             AvclMission avcl,
             String outFile)Creates the input streams and assigns the local variables assigning conversion
 output sources | 
| XsltConverter(String xslFile,
             String avclFile,
             String outFile)Creates the input streams and assigns the local variables from which | 
| Modifier and Type | Method and Description | 
|---|---|
| void | closeStream()Manually closes the output stream of the converter
 Separated from the run method to allow the stream to remain open
 if required for multiple conversions over the same pipe
 (e.g., communications or high level vehicle control) | 
| void | commenceMarshal()Commences marshalling the AVCL mission to the pipedOutputStream once
 the reading thread has been spawned. | 
| static void | main(String[] args)Used to run XSLT transformations
 The command line arguments should be the input file, the xslt file,
 and the output file in order | 
| void | resetAvcl(AvclMission newAvclMission)Resets the AVCL mission object to be converted | 
| boolean | runConversion()Conducts the XSLT transformation and writes the result to the
 designated output stream | 
| void | setParameter(String name,
            Object value)General-purpose method to set a parameter name and corresponding (object) value | 
run, setAutoStreamCloseprotected InputStream avclStream
public XsltConverter(String xslFile, String avclFile, String outFile) throws FileNotFoundException
xslFile - path to XSLT to be used in conversionavclFile - path to the AVCL input file to be convertedoutFile - destinationFileNotFoundExceptionpublic XsltConverter(File xslFile, File avclFile, File outFile) throws FileNotFoundException
xslFile - path to XSLT to be used in conversionavclFile - path to the AVCL input file to be convertedoutFile - destinationFileNotFoundExceptionpublic XsltConverter(String xslFile, AvclMission avcl, String outFile) throws FileNotFoundException
xslFile - path to XSLT to be used in conversionavcl - path to the AVCL input file to be convertedoutFile - destinationFileNotFoundExceptionpublic XsltConverter(File xslFile, AvclMission avcl, File outFile) throws FileNotFoundException
xslFile - path to XSLT to be used in conversionavcl - path to the AVCL input file to be convertedoutFile - destinationFileNotFoundExceptionpublic XsltConverter(File xslFile, File outFile) throws FileNotFoundException
xslFile - path to XSLT to be used in conversionoutFile - destinationFileNotFoundExceptionpublic XsltConverter(File xslFile, OutputStream outStream)
xslFile - path to XSLT to be used in conversionoutStream - destinationpublic void resetAvcl(AvclMission newAvclMission)
newAvclMission - public boolean runConversion()
runConversion in class Converterpublic void commenceMarshal()
public void closeStream()
closeStream in class Converterpublic void setParameter(String name, Object value)
name - value - public static void main(String[] args)
args - command line arguments must be the input file, output file, and xslt file in order