Interface MetaDataIterator

All Superinterfaces:
Closeable
All Known Implementing Classes:
ClassMetaDataIterator, ClasspathMetaDataIterator, FileMetaDataIterator, JarFileURLMetaDataIterator, MetaDataIteratorChain, ResourceMetaDataIterator, URLMetaDataIterator, ZipFileMetaDataIterator, ZipStreamMetaDataIterator

public interface MetaDataIterator extends Closeable
Iterator over metadata resources.
Author:
Abe White
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Close the resources used by this iterator.
    Return the last-iterated metadata resource content as a file, or null if not an extant file.
    Return the last-iterated metadata resource content as a stream.
    boolean
    Return whether there is another resource to iterate over.
    Return the next metadata resource.
  • Method Details

    • hasNext

      boolean hasNext() throws IOException
      Return whether there is another resource to iterate over.
      Throws:
      IOException
    • next

      Object next() throws IOException
      Return the next metadata resource.
      Throws:
      IOException
    • getInputStream

      InputStream getInputStream() throws IOException
      Return the last-iterated metadata resource content as a stream.
      Throws:
      IOException
    • getFile

      File getFile() throws IOException
      Return the last-iterated metadata resource content as a file, or null if not an extant file.
      Throws:
      IOException
    • close

      void close()
      Close the resources used by this iterator.
      Specified by:
      close in interface Closeable