Package net.solarnetwork.node.backup
Class ZipStreamBackupResourceIterable
java.lang.Object
net.solarnetwork.node.backup.ZipStreamBackupResourceIterable
- All Implemented Interfaces:
Closeable,AutoCloseable,Iterable<BackupResource>,BackupResourceIterable
Iterator over a zip stream of backup resources.
- Since:
- 1.46
- Version:
- 1.0
- Author:
- matt
-
Constructor Summary
ConstructorsConstructorDescriptionZipStreamBackupResourceIterable(ZipInputStream zin, Map<String, String> props) Construct with a zip stream and properties. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
ZipStreamBackupResourceIterable
Construct with a zip stream and properties. The supported properties are those fromBackupManager.- Parameters:
zin- The zip input stream to read.props- The properties.
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
iterator
- Specified by:
iteratorin interfaceIterable<BackupResource>
-