Class JarFileURLMetaDataIterator

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()
      Close the resources used by this iterator.
      byte[] getContent()
      Resource content.
      java.io.File getFile()
      Return the last-iterated metadata resource content as a file, or null if not an extant file.
      java.io.InputStream getInputStream()
      Return the last-iterated metadata resource content as a stream.
      java.lang.String getName()
      The name of the resource.
      boolean hasNext()
      Return whether there is another resource to iterate over.
      java.lang.Object next()
      Return the next metadata resource.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JarFileURLMetaDataIterator

        public JarFileURLMetaDataIterator​(java.net.URL url,
                                          MetaDataFilter filter)
                                   throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • hasNext

        public boolean hasNext()
                        throws java.io.IOException
        Return whether there is another resource to iterate over.
        Specified by:
        hasNext in interface MetaDataIterator
        Throws:
        java.io.IOException
      • next

        public java.lang.Object next()
                              throws java.io.IOException
        Return the next metadata resource.
        Specified by:
        next in interface MetaDataIterator
        Throws:
        java.io.IOException
      • getInputStream

        public java.io.InputStream getInputStream()
                                           throws java.io.IOException
        Return the last-iterated metadata resource content as a stream.
        Specified by:
        getInputStream in interface MetaDataIterator
        Throws:
        java.io.IOException
      • getFile

        public java.io.File getFile()
                             throws java.io.IOException
        Return the last-iterated metadata resource content as a file, or null if not an extant file.
        Specified by:
        getFile in interface MetaDataIterator
        Throws:
        java.io.IOException
      • getContent

        public byte[] getContent()
                          throws java.io.IOException
        Resource content.
        Specified by:
        getContent in interface MetaDataFilter.Resource
        Throws:
        java.io.IOException