| |
|
| java.lang.Object org.kuali.module.labor.util.LaborOriginEntryFileIterator
LaborOriginEntryFileIterator | public class LaborOriginEntryFileIterator implements Iterator<LaborOriginEntry>(Code) | | This class lazy loads the origin entries in a flat file. This implementation uses a limited amount of memory because it does not
pre-load all of the origin entries at once. (Assuming that the Java garbage collector is working well). However, if the code that
uses this iterator stores the contents of this iterator in a big list somewhere, then a lot of memory may be consumed, depending
on the size of the file.
|
Constructor Summary | |
public | LaborOriginEntryFileIterator(BufferedReader reader) Constructs a LaborOriginEntryFileIterator
Parameters: reader - a reader representing flat-file origin entries Parameters: autoCloseReader - whether to automatically close the reader when the end of origin entries has been reached (i.e. | public | LaborOriginEntryFileIterator(BufferedReader reader, boolean autoCloseReader) Constructs a LaborOriginEntryFileIterator
Parameters: reader - a reader representing flat-file origin entries Parameters: autoCloseReader - whether to automatically close the reader when the end of origin entries has been reached (i.e. | public | LaborOriginEntryFileIterator(File file) Constructs a LaborOriginEntryFileIterator When constructed with this method, the file handle will be automatically closed
when the end of origin entries has been reached (i.e. |
autoCloseReader | protected boolean autoCloseReader(Code) | | |
lineNumber | protected int lineNumber(Code) | | |
LaborOriginEntryFileIterator | public LaborOriginEntryFileIterator(BufferedReader reader)(Code) | | Constructs a LaborOriginEntryFileIterator
Parameters: reader - a reader representing flat-file origin entries Parameters: autoCloseReader - whether to automatically close the reader when the end of origin entries has been reached (i.e. whenhasNext() returns false) |
LaborOriginEntryFileIterator | public LaborOriginEntryFileIterator(BufferedReader reader, boolean autoCloseReader)(Code) | | Constructs a LaborOriginEntryFileIterator
Parameters: reader - a reader representing flat-file origin entries Parameters: autoCloseReader - whether to automatically close the reader when the end of origin entries has been reached (i.e. whenhasNext() returns false) |
LaborOriginEntryFileIterator | public LaborOriginEntryFileIterator(File file)(Code) | | Constructs a LaborOriginEntryFileIterator When constructed with this method, the file handle will be automatically closed
when the end of origin entries has been reached (i.e. when hasNext() returns false)
Parameters: file - the file |
fetchNextEntry | protected void fetchNextEntry()(Code) | | |
|
|
|