|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nih.nlm.util.FileStatistics
public class FileStatistics
Container for info about file statistics.
| Constructor Summary | |
|---|---|
FileStatistics()
Instantiates an empty FileStatistics |
|
| Method Summary | |
|---|---|
void |
clear()
Clear all statistics. |
ColumnStatistics[] |
getAllColumnStatistics()
Returns the ColumnStatistics for the file. |
long |
getByteCount()
Returns the byte count. |
boolean |
getCharsEqualsBytes()
Indicates if the character encoding is one byte per character or not. |
ColumnStatistics |
getColumnStatistics(String column)
Returns the statistics for a particular column of the file. |
String |
getDescription()
Returns a description of the file. |
String |
getFileName()
Returns the file name. |
int |
getLineCount()
Returns the line count. |
void |
incrementByteCount(int increment)
Increments the byte count by a certain amount. |
void |
incrementLineCount()
Increments the line count by 1. |
String |
processLine(String line)
Compute statistics for the line of the file. |
void |
setAllColumnStatistics(ColumnStatistics[] newColumns)
Sets all of the ColumnStatistics. |
void |
setByteCount(long newbyte_count)
Sets the byte count. |
void |
setCharsEqualsBytes(boolean chars_equals_bytes)
Sets a flag which indicates if the character encoding is one byte per character or not. |
void |
setDescription(String newDescription)
Sets the file description |
void |
setFileName(String newfile_name)
Sets the file name. |
void |
setLineCount(int newline_count)
Sets the line count. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileStatistics()
FileStatistics
| Method Detail |
|---|
public long getByteCount()
public ColumnStatistics[] getAllColumnStatistics()
ColumnStatistics for the file.
ColumnStatistics for the filepublic ColumnStatistics getColumnStatistics(String column)
column - the specified column name
ColumnStatistics for the column namepublic String getFileName()
public int getLineCount()
public void setByteCount(long newbyte_count)
newbyte_count - the byte countpublic void setAllColumnStatistics(ColumnStatistics[] newColumns)
ColumnStatistics.
newColumns - the specified ColumnStatistics.public void setFileName(String newfile_name)
newfile_name - the file namepublic void setLineCount(int newline_count)
newline_count - the line ocuntpublic void incrementLineCount()
public void incrementByteCount(int increment)
increment - the amount to increment bypublic void clear()
public String getDescription()
public void setCharsEqualsBytes(boolean chars_equals_bytes)
chars_equals_bytes - booleanpublic boolean getCharsEqualsBytes()
booleanpublic void setDescription(String newDescription)
newDescription - the file descriptionpublic String processLine(String line)
line - a line of the file
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||