Terrenus HRPT v2.2

terrenus.telemetry
Class TelemetryStreamFactory

java.lang.Object
  extended by terrenus.telemetry.TelemetryStreamFactory

public class TelemetryStreamFactory
extends java.lang.Object

The TelemetryStreamFactory class creates TelemetryStream objects from various different stream class implementations.


Constructor Summary
TelemetryStreamFactory()
           
 
Method Summary
static TelemetryStream create(java.lang.String fileName)
          Creates a telemetry stream object from a file.
static void main(java.lang.String[] argv)
          Tests this class.
static void setVerboseMode(boolean verboseMode)
          Sets the verbose mode flag.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TelemetryStreamFactory

public TelemetryStreamFactory()
Method Detail

setVerboseMode

public static void setVerboseMode(boolean verboseMode)
Sets the verbose mode flag. In verbose mode, the results of automatic file identification is printed. Otherwise, automatic file identification is performed silently.

Parameters:
verboseMode - the new verbose mode to use, TRUE to print or FALSE to not print.

create

public static TelemetryStream create(java.lang.String fileName)
                              throws java.io.IOException
Creates a telemetry stream object from a file.

Parameters:
fileName - the data file name. The file will be opened using various different stream classes in the list until the correct constructor is found.
Returns:
a new stream object.
Throws:
java.io.IOException - if the stream could not be created. Either the file was not found, or the format was not recognized by any stream.

main

public static void main(java.lang.String[] argv)
                 throws java.lang.Exception
Tests this class.

Throws:
java.lang.Exception

Terrenus HRPT v2.2