databionics.io
Class UmxFile

java.lang.Object
  extended by databionics.io.BaseFile
      extended by databionics.io.Array2DFile
          extended by databionics.io.UmxFile
Direct Known Subclasses:
ImxFile

public class UmxFile
extends Array2DFile

File that stores an U-Matrix in a 2D array.


Field Summary
protected static org.apache.log4j.Logger log
          Log4j logging.
 
Fields inherited from class databionics.io.Array2DFile
data
 
Fields inherited from class databionics.io.BaseFile
allowEmptyLines, comment, commentPrefix, delimiter, delimiters, file, header, headerPrefix, loc, nf
 
Constructor Summary
UmxFile()
          Standard constructor
UmxFile(int rows, int cols)
          Constructor with size for an empty array.
UmxFile(java.lang.String filename)
          Constructor with a filename
 
Method Summary
protected  void buildHeader()
          Generate header.
protected  void checkHeader()
          Check consistency of header information.
static FileType getFileType()
          Get the type of file.
 
Methods inherited from class databionics.io.Array2DFile
buildLine, get, getColumns, getData, getRows, getSize, init, parseLine, set, setData, setData
 
Methods inherited from class databionics.io.BaseFile
checkHeaderAgainstSize, getComment, getFile, getFilename, getHeader, getLocale, getNumberFormat, isHeader, isNaN, isNumber, load, load, parseError, parseHeader, save, save, setComment, setFilename, setLocale, writeStringList, writeStringList
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static org.apache.log4j.Logger log
Log4j logging.

Constructor Detail

UmxFile

public UmxFile()
Standard constructor


UmxFile

public UmxFile(java.lang.String filename)
Constructor with a filename

Parameters:
filename - Name of the file

UmxFile

public UmxFile(int rows,
               int cols)
Constructor with size for an empty array.

Parameters:
rows - Rows of data array.
cols - Columns of data array.
Method Detail

checkHeader

protected void checkHeader()
Check consistency of header information.

Overrides:
checkHeader in class BaseFile

buildHeader

protected void buildHeader()
Generate header.

Overrides:
buildHeader in class Array2DFile

getFileType

public static FileType getFileType()
Get the type of file.



Copyright © 2005-2006 Databionics Research Group. All Rights Reserved.