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

java.lang.Object
  extended by edu.jhu.ece.iacl.jist.io.FileReaderWriter<int[][]>
      extended by edu.jhu.ece.iacl.jist.io.ArrayIntegerReaderWriter
          extended by edu.jhu.ece.iacl.jist.io.ArrayIntegerTxtReaderWriter

public class ArrayIntegerTxtReaderWriter
extends ArrayIntegerReaderWriter

The Class ArrayIntegerTxtReaderWriter.


Field Summary
protected static ArrayIntegerTxtReaderWriter readerWriter
          The Constant readerWriter.
 
Fields inherited from class edu.jhu.ece.iacl.jist.io.FileReaderWriter
extensionFilter, fileName
 
Constructor Summary
ArrayIntegerTxtReaderWriter()
          Instantiates a new array integer txt reader writer.
 
Method Summary
static ArrayIntegerTxtReaderWriter getInstance()
          Gets the single instance of ArrayIntegerTxtReaderWriter.
protected  int[][] readObject(java.io.File f)
          Read object.
protected  boolean writeObject(int[][] dat, 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 ArrayIntegerTxtReaderWriter readerWriter
The Constant readerWriter.

Constructor Detail

ArrayIntegerTxtReaderWriter

public ArrayIntegerTxtReaderWriter()
Instantiates a new array integer txt reader writer.

Method Detail

getInstance

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

Returns:
single instance of ArrayIntegerTxtReaderWriter

readObject

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

Overrides:
readObject in class ArrayIntegerReaderWriter
Parameters:
f - the f
Returns:
the t

writeObject

protected boolean writeObject(int[][] dat,
                              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.

Overrides:
writeObject in class ArrayIntegerReaderWriter
Parameters:
dat - The object being written
f - Where the file should be written
Returns:
true if successful, false otherwise