gov.nih.nlm.mms.cxt
Class MRCXTBuilderFileStatisticsConfiguration

java.lang.Object
  extended by gov.nih.nlm.mms.cxt.MRCXTBuilderFileStatisticsConfiguration
All Implemented Interfaces:
FileStatisticsConfiguration

public class MRCXTBuilderFileStatisticsConfiguration
extends Object
implements FileStatisticsConfiguration

Class used to maintain data for MRFILES.RRF and MRCOLS.RRF during the Building of MRCXT.RRF.


Field Summary
protected  int additional_bytes
           
 
Constructor Summary
MRCXTBuilderFileStatisticsConfiguration(File mrfiles_file, File mrcols_file, MRCXTBuilder mrcxt_builder)
          Instantiates a MRCXTBuilderFileStatisticsConfiguration from the specified MRCOLS and MRFILES.
 
Method Summary
 FileStatistics getFileStatistics(String file_name)
          Returns the FileStatistics object for the specified file name.
 void setAdditionalBytes(int additional_bytes)
          Indicates that additional bytes must be added to the byte count for all files.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

additional_bytes

protected int additional_bytes
Constructor Detail

MRCXTBuilderFileStatisticsConfiguration

public MRCXTBuilderFileStatisticsConfiguration(File mrfiles_file,
                                               File mrcols_file,
                                               MRCXTBuilder mrcxt_builder)
                                        throws IOException
Instantiates a MRCXTBuilderFileStatisticsConfiguration from the specified MRCOLS and MRFILES.

Parameters:
mrfiles_file - MRFILES.RRF
mrcols_file - MRCOLS.RRF
Throws:
IOException
Method Detail

setAdditionalBytes

public void setAdditionalBytes(int additional_bytes)
Indicates that additional bytes must be added to the byte count for all files. This may be used for cases such as the unicode BOM which is 3 bytes prepended to all files written.

Specified by:
setAdditionalBytes in interface FileStatisticsConfiguration
Parameters:
additional_bytes - int

getFileStatistics

public FileStatistics getFileStatistics(String file_name)
Returns the FileStatistics object for the specified file name.

Specified by:
getFileStatistics in interface FileStatisticsConfiguration
Parameters:
file_name - the specified file name
Returns:
the FileStatistics object for the specified file name


Copyright ©2005