public class MetaDataIteratorChain extends Object implements MetaDataIterator
| Constructor and Description |
|---|
MetaDataIteratorChain()
Default constructor.
|
MetaDataIteratorChain(MetaDataIterator itr1,
MetaDataIterator itr2)
Combine two iterators.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addIterator(MetaDataIterator itr)
Add an iterator to the chain.
|
void |
close()
Close the resources used by this iterator.
|
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.
|
boolean |
hasNext()
Return whether there is another resource to iterate over.
|
Object |
next()
Return the next metadata resource.
|
public MetaDataIteratorChain()
public MetaDataIteratorChain(MetaDataIterator itr1, MetaDataIterator itr2)
public void addIterator(MetaDataIterator itr)
public boolean hasNext()
throws IOException
MetaDataIteratorhasNext in interface MetaDataIteratorIOExceptionpublic Object next() throws IOException
MetaDataIteratornext in interface MetaDataIteratorIOExceptionpublic InputStream getInputStream() throws IOException
MetaDataIteratorgetInputStream in interface MetaDataIteratorIOExceptionpublic File getFile() throws IOException
MetaDataIteratorgetFile in interface MetaDataIteratorIOExceptionpublic void close()
MetaDataIteratorclose in interface MetaDataIteratorclose in interface CloseableCopyright © 2006–2022 Apache Software Foundation. All rights reserved.