public interface MetaDataParser
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears the cache of parsed resource names.
|
List |
getResults()
Return the results from the last parse.
|
void |
parse(Class<?> cls,
boolean topDown)
Parse all possible metadata locations for the given class, going
top-down or bottom-up.
|
void |
parse(File file)
Parse the given file, which may be a directory, in which case it
will be scanned recursively for metadata files.
|
void |
parse(MetaDataIterator itr)
Parse the metadata supplied by the given iterator.
|
void |
parse(Reader content,
String sourceName)
Parse the metadata in the given reader.
|
void |
parse(String rsrc)
Parse the given resource.
|
void |
parse(URL url)
Parse the given resource.
|
void |
setClassLoader(ClassLoader loader)
The classloader to use to resolve resources, or null for impl-defined
default.
|
void setClassLoader(ClassLoader loader)
List getResults()
void parse(String rsrc) throws IOException
IOException
void parse(URL url) throws IOException
IOException
void parse(File file) throws IOException
IOException
void parse(Class<?> cls, boolean topDown) throws IOException
IOException
void parse(Reader content, String sourceName) throws IOException
content
- reader containing the metadata to parsesourceName
- the name of the source being parsed, for use
in error messagesIOException
void parse(MetaDataIterator itr) throws IOException
IOException
void clear()
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.