Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

feynman.framework.datastore
Class FileDataStore  view FileDataStore download FileDataStore.java

java.lang.Object
  extended byfeynman.framework.datastore.FileDataStore
All Implemented Interfaces:
DataStore

public class FileDataStore
extends java.lang.Object
implements DataStore

File based implementation of the DataStore interface. This class makes use of the toString() method defined in the PhysicalMeasurement interface.

Version:
$Revision: 1.1.1.1 $ $Date: 2002/11/12 02:25:41 $

Field Summary
private  java.io.File file
           
private  java.io.FileWriter fw
           
private  java.io.PrintWriter pw
           
 
Constructor Summary
(package private) FileDataStore()
           
 
Method Summary
 void close()
          Method to close the PhysicalMeasurement data file for writing.
 void open(java.lang.String source)
          Method to open a file for writing PhysicalMeasurement data to.
 void save(feynman.framework.system.PhysicalMeasurement pm)
          Method to write the PhysicalMeasurement data to the file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

file

private java.io.File file

fw

private java.io.FileWriter fw

pw

private java.io.PrintWriter pw
Constructor Detail

FileDataStore

FileDataStore()
Method Detail

open

public void open(java.lang.String source)
          throws ConnectionException
Method to open a file for writing PhysicalMeasurement data to.

Specified by:
open in interface DataStore

save

public void save(feynman.framework.system.PhysicalMeasurement pm)
Method to write the PhysicalMeasurement data to the file.

Specified by:
save in interface DataStore

close

public void close()
           throws ConnectionException
Method to close the PhysicalMeasurement data file for writing.

Specified by:
close in interface DataStore