|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.openjpa.lib.meta.ResourceMetaDataIterator
public class ResourceMetaDataIterator
Iterator over a given metadata resource.
Constructor Summary | |
---|---|
ResourceMetaDataIterator(String rsrc)
Constructor; supply the resource to parse. |
|
ResourceMetaDataIterator(String rsrc,
ClassLoader loader)
Constructor; supply the resource to parse. |
Method Summary | |
---|---|
void |
close()
Close the resources used by this iterator. |
File |
getFile()
Return the last-iterated metadata resource content as a file, or null if not an extant file. |
InputStream |
getInputStream()
Return the last-iterated metadata resource content as a stream. |
boolean |
hasNext()
Return whether there is another resource to iterate over. |
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 |
---|
public ResourceMetaDataIterator(String rsrc) throws IOException
IOException
public ResourceMetaDataIterator(String rsrc, ClassLoader loader) throws IOException
IOException
Method Detail |
---|
public boolean hasNext()
MetaDataIterator
hasNext
in interface MetaDataIterator
public Object next()
MetaDataIterator
next
in interface MetaDataIterator
public InputStream getInputStream() throws IOException
MetaDataIterator
getInputStream
in interface MetaDataIterator
IOException
public File getFile() throws IOException
MetaDataIterator
getFile
in interface MetaDataIterator
IOException
public void close()
MetaDataIterator
close
in interface MetaDataIterator
close
in interface Closeable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |