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

java.lang.Object
  extended by edu.jhu.ece.iacl.jist.io.FileReaderWriter<int[][]>
      extended by edu.jhu.ece.iacl.jist.io.ArrayIntegerReaderWriter
Direct Known Subclasses:
ArrayIntegerDxReaderWriter, ArrayIntegerTxtReaderWriter

public class ArrayIntegerReaderWriter
extends FileReaderWriter<int[][]>

The Class ArrayIntegerReaderWriter.


Field Summary
protected static ArrayIntegerReaderWriter readerWriter
          The Constant readerWriter.
 
Fields inherited from class edu.jhu.ece.iacl.jist.io.FileReaderWriter
extensionFilter, fileName
 
Constructor Summary
ArrayIntegerReaderWriter()
          Instantiates a new array integer reader writer.
ArrayIntegerReaderWriter(FileExtensionFilter filter)
          Instantiates a new array integer reader writer.
 
Method Summary
static ArrayIntegerReaderWriter getInstance()
          Gets the single instance of ArrayIntegerReaderWriter.
protected  int[][] readObject(java.io.File f)
          Read object.
protected  boolean writeObject(int[][] obj, 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.
 
Methods inherited from class edu.jhu.ece.iacl.jist.io.FileReaderWriter
accept, getExtensionFilter, getFileExtension, getFileExtension, getFileName, getFileName, getFileName, getFullFileName, read, setExtensionFilter, setFileName, write, writeObjectToDirectory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

readerWriter

protected static final ArrayIntegerReaderWriter readerWriter
The Constant readerWriter.

Constructor Detail

ArrayIntegerReaderWriter

public ArrayIntegerReaderWriter(FileExtensionFilter filter)
Instantiates a new array integer reader writer.

Parameters:
filter - the filter

ArrayIntegerReaderWriter

public ArrayIntegerReaderWriter()
Instantiates a new array integer reader writer.

Method Detail

getInstance

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

Returns:
single instance of ArrayIntegerReaderWriter

readObject

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

Specified by:
readObject in class FileReaderWriter<int[][]>
Parameters:
f - the f
Returns:
the t

writeObject

protected boolean writeObject(int[][] obj,
                              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<int[][]>
Parameters:
obj - The object being written
f - Where the file should be written
Returns:
true if successful, false otherwise