Package org.apache.openjpa.lib.meta
Interface MetaDataIterator
- All Superinterfaces:
Closeable
- All Known Implementing Classes:
ClassMetaDataIterator,ClasspathMetaDataIterator,FileMetaDataIterator,JarFileURLMetaDataIterator,MetaDataIteratorChain,ResourceMetaDataIterator,URLMetaDataIterator,ZipFileMetaDataIterator,ZipStreamMetaDataIterator
Iterator over metadata resources.
- Author:
- Abe White
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close the resources used by this iterator.getFile()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.booleanhasNext()Return whether there is another resource to iterate over.next()Return the next metadata resource.
-
Method Details
-
hasNext
Return whether there is another resource to iterate over.- Throws:
IOException
-
next
Return the next metadata resource.- Throws:
IOException
-
getInputStream
Return the last-iterated metadata resource content as a stream.- Throws:
IOException
-
getFile
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.
-