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

java.lang.Object
  extended by edu.jhu.ece.iacl.jist.io.FileReaderWriter<FiberCollection>
      extended by edu.jhu.ece.iacl.jist.io.FiberCollectionReaderWriter

public class FiberCollectionReaderWriter
extends FileReaderWriter<FiberCollection>

The Class FiberCollectionReaderWriter.


Field Summary
protected static FiberCollectionReaderWriter readerWriter
          The Constant readerWriter.
 
Fields inherited from class edu.jhu.ece.iacl.jist.io.FileReaderWriter
extensionFilter, fileName
 
Constructor Summary
FiberCollectionReaderWriter()
          Instantiates a new fiber collection reader writer.
 
Method Summary
static FiberCollectionReaderWriter getInstance()
          Gets the single instance of FiberCollectionReaderWriter.
protected  FiberCollection readObject(java.io.File file)
          Read object.
protected  boolean writeObject(FiberCollection allFibers, java.io.File file)
          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(FiberCollection fbr, 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 FiberCollectionReaderWriter readerWriter
The Constant readerWriter.

Constructor Detail

FiberCollectionReaderWriter

public FiberCollectionReaderWriter()
Instantiates a new fiber collection reader writer.

Method Detail

getInstance

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

Returns:
single instance of FiberCollectionReaderWriter

readObject

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

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

writeObjectToDirectory

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

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

writeObject

protected boolean writeObject(FiberCollection allFibers,
                              java.io.File file)
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<FiberCollection>
Parameters:
allFibers - The object being written
file - Where the file should be written
Returns:
true if successful, false otherwise