Package org.apache.openjpa.lib.meta
Class ResourceMetaDataIterator
java.lang.Object
org.apache.openjpa.lib.meta.ResourceMetaDataIterator
- All Implemented Interfaces:
MetaDataIterator,Closeable
Iterator over a given metadata resource.
- Author:
- Abe White
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor; supply the resource to parse.ResourceMetaDataIterator(String rsrc, ClassLoader loader) Constructor; supply the resource to parse. -
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.
-
Constructor Details
-
ResourceMetaDataIterator
Constructor; supply the resource to parse.- Throws:
IOException
-
ResourceMetaDataIterator
Constructor; supply the resource to parse.- Throws:
IOException
-
-
Method Details
-
hasNext
public boolean hasNext()Description copied from interface:MetaDataIteratorReturn whether there is another resource to iterate over.- Specified by:
hasNextin interfaceMetaDataIterator
-
next
Description copied from interface:MetaDataIteratorReturn the next metadata resource.- Specified by:
nextin interfaceMetaDataIterator
-
getInputStream
Description copied from interface:MetaDataIteratorReturn the last-iterated metadata resource content as a stream.- Specified by:
getInputStreamin interfaceMetaDataIterator- Throws:
IOException
-
getFile
Description copied from interface:MetaDataIteratorReturn the last-iterated metadata resource content as a file, or null if not an extant file.- Specified by:
getFilein interfaceMetaDataIterator- Throws:
IOException
-
close
public void close()Description copied from interface:MetaDataIteratorClose the resources used by this iterator.- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceMetaDataIterator
-