public class ClassMetaDataIterator extends Object implements MetaDataIterator
Constructor and Description |
---|
ClassMetaDataIterator(Class<?> cls,
String suffix,
boolean topDown)
Constructor; supply the class whose metadata to find, the suffix
of metadata files, and whether to parse top-down or bottom-up.
|
ClassMetaDataIterator(Class<?> cls,
String suffix,
ClassLoader loader,
boolean topDown)
Constructor; supply the class whose metadata to find, the suffix
of metadata files, and whether to parse top-down or bottom-up.
|
Modifier and Type | Method and Description |
---|---|
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.
|
URL |
next()
Return the next metadata resource.
|
public ClassMetaDataIterator(Class<?> cls, String suffix, boolean topDown)
public ClassMetaDataIterator(Class<?> cls, String suffix, ClassLoader loader, boolean topDown)
public boolean hasNext() throws IOException
MetaDataIterator
hasNext
in interface MetaDataIterator
IOException
public URL next() throws IOException
MetaDataIterator
next
in interface MetaDataIterator
IOException
public InputStream getInputStream() throws IOException
MetaDataIterator
getInputStream
in interface MetaDataIterator
IOException
public File getFile() throws IOException
MetaDataIterator
getFile
in interface MetaDataIterator
IOException
public void close()
MetaDataIterator
close
in interface MetaDataIterator
close
in interface Closeable
Copyright © 2006–2018 Apache Software Foundation. All rights reserved.