org.cdgsoftware.icl
Class ICLFile

java.lang.Object
  extended by org.cdgsoftware.icl.ICLFile

public class ICLFile
extends java.lang.Object

The Class ICLFile.


Constructor Summary
ICLFile()
          Instantiates a new iCL file.
ICLFile(FileHeaderRecord fileHeader, java.util.ArrayList<CashLetter> cashLetterList, FileControlRecord fileControl)
          Instantiates a new iCL file.
 
Method Summary
 java.util.ArrayList<CashLetter> getCashLetterList()
          Gets the cash letter list.
 FileControlRecord getFileControl()
          Gets the file control.
 FileHeaderRecord getFileHeader()
          Gets the file header.
 boolean rebalanceFile()
          Rebalance file.
 void saveAllImages(java.lang.String savePath)
          Save all images.
 void setCashLetterList(java.util.ArrayList<CashLetter> cashLetterList)
          Sets the cash letter list.
 void setFileControl(FileControlRecord fileControl)
          Sets the file control.
 void setFileHeader(FileHeaderRecord fileHeader)
          Sets the file header.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ICLFile

public ICLFile()
Instantiates a new iCL file.


ICLFile

public ICLFile(FileHeaderRecord fileHeader,
               java.util.ArrayList<CashLetter> cashLetterList,
               FileControlRecord fileControl)
Instantiates a new iCL file.

Parameters:
fileHeader - the file header
cashLetterList - the cash letter list
fileControl - the file control
Method Detail

saveAllImages

public void saveAllImages(java.lang.String savePath)
                   throws java.io.IOException
Save all images.

Parameters:
savePath - the save path
Throws:
java.io.IOException - Signals that an I/O exception has occurred.

rebalanceFile

public boolean rebalanceFile()
Rebalance file.

Returns:
true, if successful

getFileHeader

public FileHeaderRecord getFileHeader()
Gets the file header.

Returns:
the file header

setFileHeader

public void setFileHeader(FileHeaderRecord fileHeader)
Sets the file header.

Parameters:
fileHeader - the new file header

getCashLetterList

public java.util.ArrayList<CashLetter> getCashLetterList()
Gets the cash letter list.

Returns:
the cash letter list

setCashLetterList

public void setCashLetterList(java.util.ArrayList<CashLetter> cashLetterList)
Sets the cash letter list.

Parameters:
cashLetterList - the new cash letter list

getFileControl

public FileControlRecord getFileControl()
Gets the file control.

Returns:
the file control

setFileControl

public void setFileControl(FileControlRecord fileControl)
Sets the file control.

Parameters:
fileControl - the new file control