public class ClassMetaDataIterator extends java.lang.Object implements MetaDataIterator
| Constructor and Description |
|---|
ClassMetaDataIterator(java.lang.Class<?> cls,
java.lang.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(java.lang.Class<?> cls,
java.lang.String suffix,
java.lang.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.
|
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.
|
boolean |
hasNext()
Return whether there is another resource to iterate over.
|
java.net.URL |
next()
Return the next metadata resource.
|
public ClassMetaDataIterator(java.lang.Class<?> cls,
java.lang.String suffix,
boolean topDown)
public ClassMetaDataIterator(java.lang.Class<?> cls,
java.lang.String suffix,
java.lang.ClassLoader loader,
boolean topDown)
public boolean hasNext()
throws java.io.IOException
MetaDataIteratorhasNext in interface MetaDataIteratorjava.io.IOExceptionpublic java.net.URL next()
throws java.io.IOException
MetaDataIteratornext in interface MetaDataIteratorjava.io.IOExceptionpublic java.io.InputStream getInputStream()
throws java.io.IOException
MetaDataIteratorgetInputStream in interface MetaDataIteratorjava.io.IOExceptionpublic java.io.File getFile()
throws java.io.IOException
MetaDataIteratorgetFile in interface MetaDataIteratorjava.io.IOExceptionpublic void close()
MetaDataIteratorclose in interface MetaDataIteratorclose in interface CloseableCopyright © 2006-2013 Apache Software Foundation. All Rights Reserved.