public final class AttachmentSettingIterator extends java.lang.Object implements java.util.Iterator<Record>
CommonsCompressCompoundExtractorService.KEY_TMP_FILE_NAME
. The records are
removed from the list after returned by next() in order to save memory.Constructor and Description |
---|
AttachmentSettingIterator(java.util.List<Record> records,
java.lang.String contentAttachmentName,
java.nio.file.Path tmpDir)
create instance.
|
public AttachmentSettingIterator(java.util.List<Record> records, java.lang.String contentAttachmentName, java.nio.file.Path tmpDir)
records
- list of recordscontentAttachmentName
- name of attachment to usetmpDir
- directory in which the attachment files are stored.public boolean hasNext()
hasNext
in interface java.util.Iterator<Record>
protected void finalize()
finalize
in class java.lang.Object
public void remove()
remove
in interface java.util.Iterator<Record>