public class JarFileURLMetaDataIterator extends java.lang.Object implements MetaDataIterator, MetaDataFilter.Resource
| Constructor and Description |
|---|
JarFileURLMetaDataIterator(java.net.URL url,
MetaDataFilter filter) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the resources used by this iterator.
|
byte[] |
getContent()
Resource content.
|
java.io.File |
getFile()
Return the last-iterated metadata resource content as a file, or null if not an extant file.
|
java.io.InputStream |
getInputStream()
Return the last-iterated metadata resource content as a stream.
|
java.lang.String |
getName()
The name of the resource.
|
boolean |
hasNext()
Return whether there is another resource to iterate over.
|
java.lang.Object |
next()
Return the next metadata resource.
|
public JarFileURLMetaDataIterator(java.net.URL url,
MetaDataFilter filter)
throws java.io.IOException
java.io.IOExceptionpublic boolean hasNext()
throws java.io.IOException
hasNext in interface MetaDataIteratorjava.io.IOExceptionpublic java.lang.Object next()
throws java.io.IOException
next in interface MetaDataIteratorjava.io.IOExceptionpublic java.io.InputStream getInputStream()
throws java.io.IOException
getInputStream in interface MetaDataIteratorjava.io.IOExceptionpublic java.io.File getFile()
throws java.io.IOException
getFile in interface MetaDataIteratorjava.io.IOExceptionpublic void close()
close in interface MetaDataIteratorclose in interface Closeablepublic java.lang.String getName()
getName in interface MetaDataFilter.Resourcepublic byte[] getContent()
throws java.io.IOException
getContent in interface MetaDataFilter.Resourcejava.io.IOExceptionCopyright © 2006-2013 Apache Software Foundation. All Rights Reserved.