edu.jhu.ece.iacl.jist.io
Class CurveVtkReaderWriter

java.lang.Object
  extended by edu.jhu.ece.iacl.jist.io.FileReaderWriter<CurveCollection>
      extended by edu.jhu.ece.iacl.jist.io.CurveVtkReaderWriter

public class CurveVtkReaderWriter
extends FileReaderWriter<CurveCollection>

The Class CurveVtkReaderWriter.


Field Summary
protected static CurveVtkReaderWriter readerWriter
          The Constant readerWriter.
 
Fields inherited from class edu.jhu.ece.iacl.jist.io.FileReaderWriter
extensionFilter, fileName
 
Constructor Summary
CurveVtkReaderWriter()
          Instantiates a new curve vtk reader writer.
 
Method Summary
static CurveVtkReaderWriter getInstance()
          Gets the single instance of CurveVtkReaderWriter.
protected  CurveCollection readObject(java.io.File f)
          Read object.
protected  boolean writeObject(CurveCollection collection, java.io.File f)
          writeObject should be overwritten by all extending classes This method is protected because users should call write() From there, other reader/writer methods (including this one) are called as needed.
protected  java.io.File writeObjectToDirectory(CurveCollection curves, java.io.File dir)
          Write object to directory.
 
Methods inherited from class edu.jhu.ece.iacl.jist.io.FileReaderWriter
accept, getExtensionFilter, getFileExtension, getFileExtension, getFileName, getFileName, getFileName, getFullFileName, read, setExtensionFilter, setFileName, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

readerWriter

protected static final CurveVtkReaderWriter readerWriter
The Constant readerWriter.

Constructor Detail

CurveVtkReaderWriter

public CurveVtkReaderWriter()
Instantiates a new curve vtk reader writer.

Method Detail

getInstance

public static CurveVtkReaderWriter getInstance()
Gets the single instance of CurveVtkReaderWriter.

Returns:
single instance of CurveVtkReaderWriter

readObject

protected CurveCollection readObject(java.io.File f)
Description copied from class: FileReaderWriter
Read object.

Specified by:
readObject in class FileReaderWriter<CurveCollection>
Parameters:
f - the f
Returns:
the t

writeObjectToDirectory

protected java.io.File writeObjectToDirectory(CurveCollection curves,
                                              java.io.File dir)
Description copied from class: FileReaderWriter
Write object to directory.

Overrides:
writeObjectToDirectory in class FileReaderWriter<CurveCollection>
Parameters:
curves - the obj
dir - the f
Returns:
the file

writeObject

protected boolean writeObject(CurveCollection collection,
                              java.io.File f)
Description copied from class: FileReaderWriter
writeObject should be overwritten by all extending classes This method is protected because users should call write() From there, other reader/writer methods (including this one) are called as needed.

Specified by:
writeObject in class FileReaderWriter<CurveCollection>
Parameters:
collection - The object being written
f - Where the file should be written
Returns:
true if successful, false otherwise