|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdatabionics.io.BaseFile
databionics.io.ListFile
databionics.io.RuleFile
public class RuleFile
File that stores DataClass rules.
Field Summary | |
---|---|
protected java.lang.StringBuffer |
currentRule
Buffer for current rule. |
protected static org.apache.log4j.Logger |
log
Log4j logging. |
Fields inherited from class databionics.io.ListFile |
---|
data |
Fields inherited from class databionics.io.BaseFile |
---|
allowEmptyLines, comment, commentPrefix, delimiter, delimiters, file, header, headerPrefix, loc, nf |
Constructor Summary | |
---|---|
RuleFile()
Standard constructor |
|
RuleFile(java.lang.String filename)
Constructor with a filename |
Method Summary | |
---|---|
protected void |
checkHeader()
Check consistency of header information. |
static FileType |
getFileType()
Get the type of file. |
protected boolean |
isHeader(java.lang.String line)
Determine if a line still contains header information or whether the data lines started |
protected void |
parseLine(int row,
java.lang.String line)
Parse a line. |
Methods inherited from class databionics.io.ListFile |
---|
buildLine, getData, getSize, setData |
Methods inherited from class databionics.io.BaseFile |
---|
buildHeader, checkHeaderAgainstSize, getComment, getFile, getFilename, getHeader, getLocale, getNumberFormat, init, 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 |
---|
protected static org.apache.log4j.Logger log
protected java.lang.StringBuffer currentRule
Constructor Detail |
---|
public RuleFile()
public RuleFile(java.lang.String filename)
filename
- Name of the fileMethod Detail |
---|
protected boolean isHeader(java.lang.String line)
isHeader
in class BaseFile
line
- Line to checkprotected void parseLine(int row, java.lang.String line)
parseLine
in class BaseFile
row
- Number of current line.line
- Current line.protected void checkHeader()
checkHeader
in class BaseFile
public static FileType getFileType()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |