| |
|
| java.lang.Object org.kuali.module.gl.util.OriginEntryFileIterator
OriginEntryFileIterator | public class OriginEntryFileIterator implements Iterator<OriginEntryFull>(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 | OriginEntryFileIterator(BufferedReader reader) Constructs a OriginEntryFileIterator
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 | OriginEntryFileIterator(BufferedReader reader, boolean autoCloseReader) Constructs a OriginEntryFileIterator
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 | OriginEntryFileIterator(File file) Constructs a OriginEntryFileIterator 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) | | |
OriginEntryFileIterator | public OriginEntryFileIterator(BufferedReader reader)(Code) | | Constructs a OriginEntryFileIterator
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) |
OriginEntryFileIterator | public OriginEntryFileIterator(BufferedReader reader, boolean autoCloseReader)(Code) | | Constructs a OriginEntryFileIterator
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) |
OriginEntryFileIterator | public OriginEntryFileIterator(File file)(Code) | | Constructs a OriginEntryFileIterator 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) | | This method returns the next line in origin entry file
|
|
|
|