|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.openjpa.lib.meta.ZipFileMetaDataIterator
public class ZipFileMetaDataIterator
Iterator over all metadata resources in a given zip file.
| Constructor Summary | |
|---|---|
ZipFileMetaDataIterator(URL url,
MetaDataFilter filter)
Constructor; supply zip/jar URL and optional file filter. |
|
ZipFileMetaDataIterator(ZipFile file,
MetaDataFilter filter)
Constructor; supply zip file and optional file 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 ZipFileMetaDataIterator(URL url,
MetaDataFilter filter)
throws IOException
IOException
public ZipFileMetaDataIterator(ZipFile file,
MetaDataFilter filter)
| Method Detail |
|---|
public boolean hasNext()
throws IOException
MetaDataIterator
hasNext in interface MetaDataIteratorIOException
public Object next()
throws IOException
MetaDataIterator
next in interface MetaDataIteratorIOException
public InputStream getInputStream()
throws IOException
MetaDataIterator
getInputStream in interface MetaDataIteratorIOExceptionpublic File getFile()
MetaDataIterator
getFile in interface MetaDataIteratorpublic void close()
MetaDataIterator
close in interface MetaDataIteratorclose in interface Closeablepublic String getName()
MetaDataFilter.Resource
getName in interface MetaDataFilter.Resource
public byte[] getContent()
throws IOException
MetaDataFilter.Resource
getContent in interface MetaDataFilter.ResourceIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||