Class Zip.ZipIterable

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, java.lang.Iterable<Zip.Entry>
    Enclosing class:
    Zip

    public static class Zip.ZipIterable
    extends java.lang.Object
    implements java.lang.Iterable<Zip.Entry>, java.io.Closeable
    Provides an Iterable of Zip.Entry over a zip archive.
    • Constructor Summary

      Constructors 
      Constructor Description
      ZipIterable​(java.nio.file.Path path)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      java.util.Iterator<Zip.Entry> iterator()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Constructor Detail

      • ZipIterable

        public ZipIterable​(java.nio.file.Path path)
                    throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • iterator

        public java.util.Iterator<Zip.Entry> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<Zip.Entry>
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Throws:
        java.io.IOException