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.IOException
public boolean hasNext() throws java.io.IOException
hasNext
in interface MetaDataIterator
java.io.IOException
public java.lang.Object next() throws java.io.IOException
next
in interface MetaDataIterator
java.io.IOException
public java.io.InputStream getInputStream() throws java.io.IOException
getInputStream
in interface MetaDataIterator
java.io.IOException
public java.io.File getFile() throws java.io.IOException
getFile
in interface MetaDataIterator
java.io.IOException
public void close()
close
in interface MetaDataIterator
close
in interface Closeable
public java.lang.String getName()
getName
in interface MetaDataFilter.Resource
public byte[] getContent() throws java.io.IOException
getContent
in interface MetaDataFilter.Resource
java.io.IOException
Copyright © 2006-2013 Apache Software Foundation. All Rights Reserved.