|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.openjpa.lib.meta.JarFileURLMetaDataIterator
public class JarFileURLMetaDataIterator
Iterator over all metadata resources in a given resource addressed by a jar:file URL.
Constructor Summary | |
---|---|
JarFileURLMetaDataIterator(URL url,
MetaDataFilter filter)
|
Method Summary | |
---|---|
void |
close()
Close the resources used by this iterator. |
byte[] |
getContent()
Resource content. |
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. |
String |
getName()
The name of the resource. |
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 JarFileURLMetaDataIterator(URL url, MetaDataFilter filter) throws IOException
IOException
Method Detail |
---|
public boolean hasNext() throws IOException
hasNext
in interface MetaDataIterator
IOException
public Object next() throws IOException
next
in interface MetaDataIterator
IOException
public InputStream getInputStream() throws IOException
getInputStream
in interface MetaDataIterator
IOException
public File getFile() throws IOException
getFile
in interface MetaDataIterator
IOException
public void close()
close
in interface MetaDataIterator
close
in interface Closeable
public String getName()
getName
in interface MetaDataFilter.Resource
public byte[] getContent() throws IOException
getContent
in interface MetaDataFilter.Resource
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |