public class JarFileURLMetaDataIterator extends Object implements MetaDataIterator, MetaDataFilter.Resource
| Constructor and Description |
|---|
JarFileURLMetaDataIterator(URL url,
MetaDataFilter filter) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public JarFileURLMetaDataIterator(URL url, MetaDataFilter filter) throws IOException
IOExceptionpublic boolean hasNext()
throws IOException
hasNext in interface MetaDataIteratorIOExceptionpublic Object next() throws IOException
next in interface MetaDataIteratorIOExceptionpublic InputStream getInputStream() throws IOException
getInputStream in interface MetaDataIteratorIOExceptionpublic File getFile() throws IOException
getFile in interface MetaDataIteratorIOExceptionpublic void close()
close in interface MetaDataIteratorclose in interface Closeablepublic String getName()
getName in interface MetaDataFilter.Resourcepublic byte[] getContent()
throws IOException
getContent in interface MetaDataFilter.ResourceIOExceptionCopyright © 2006–2022 Apache Software Foundation. All rights reserved.