public class ZipStreamMetaDataIterator extends Object implements MetaDataIterator, MetaDataFilter.Resource
Constructor and Description |
---|
ZipStreamMetaDataIterator(ZipInputStream stream,
MetaDataFilter filter)
Constructor; supply zip stream and optional metadata 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.
|
String |
next()
Return the next metadata resource.
|
public ZipStreamMetaDataIterator(ZipInputStream stream, MetaDataFilter filter)
public boolean hasNext() throws IOException
MetaDataIterator
hasNext
in interface MetaDataIterator
IOException
public String next() throws IOException
MetaDataIterator
next
in interface MetaDataIterator
IOException
public InputStream getInputStream()
MetaDataIterator
getInputStream
in interface MetaDataIterator
public File getFile()
MetaDataIterator
getFile
in interface MetaDataIterator
public void close()
MetaDataIterator
close
in interface MetaDataIterator
close
in interface Closeable
public String getName()
MetaDataFilter.Resource
getName
in interface MetaDataFilter.Resource
public byte[] getContent() throws IOException
MetaDataFilter.Resource
getContent
in interface MetaDataFilter.Resource
IOException
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.