public interface MetaDataParser
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears the cache of parsed resource names.
|
java.util.List |
getResults()
Return the results from the last parse.
|
void |
parse(java.lang.Class<?> cls,
boolean topDown)
Parse all possible metadata locations for the given class, going
top-down or bottom-up.
|
void |
parse(java.io.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(java.io.Reader content,
java.lang.String sourceName)
Parse the metadata in the given reader.
|
void |
parse(java.lang.String rsrc)
Parse the given resource.
|
void |
parse(java.net.URL url)
Parse the given resource.
|
void |
setClassLoader(java.lang.ClassLoader loader)
The classloader to use to resolve resources, or null for impl-defined
default.
|
void setClassLoader(java.lang.ClassLoader loader)
java.util.List getResults()
void parse(java.lang.String rsrc)
throws java.io.IOException
java.io.IOExceptionvoid parse(java.net.URL url)
throws java.io.IOException
java.io.IOExceptionvoid parse(java.io.File file)
throws java.io.IOException
java.io.IOExceptionvoid parse(java.lang.Class<?> cls,
boolean topDown)
throws java.io.IOException
java.io.IOExceptionvoid parse(java.io.Reader content,
java.lang.String sourceName)
throws java.io.IOException
content - reader containing the metadata to parsesourceName - the name of the source being parsed, for use
in error messagesjava.io.IOExceptionvoid parse(MetaDataIterator itr) throws java.io.IOException
java.io.IOExceptionvoid clear()
Copyright © 2006-2013 Apache Software Foundation. All Rights Reserved.