public class ResourceMetaDataIterator extends java.lang.Object implements MetaDataIterator
Constructor and Description |
---|
ResourceMetaDataIterator(java.lang.String rsrc)
Constructor; supply the resource to parse.
|
ResourceMetaDataIterator(java.lang.String rsrc,
java.lang.ClassLoader loader)
Constructor; supply the resource to parse.
|
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 ResourceMetaDataIterator(java.lang.String rsrc) throws java.io.IOException
java.io.IOException
public ResourceMetaDataIterator(java.lang.String rsrc, java.lang.ClassLoader loader) throws java.io.IOException
java.io.IOException
public boolean hasNext()
MetaDataIterator
hasNext
in interface MetaDataIterator
public java.net.URL next()
MetaDataIterator
next
in interface MetaDataIterator
public java.io.InputStream getInputStream() throws java.io.IOException
MetaDataIterator
getInputStream
in interface MetaDataIterator
java.io.IOException
public java.io.File getFile() throws java.io.IOException
MetaDataIterator
getFile
in interface MetaDataIterator
java.io.IOException
public void close()
MetaDataIterator
close
in interface MetaDataIterator
close
in interface Closeable
Copyright © 2006-2013 Apache Software Foundation. All Rights Reserved.