public interface JavadocParser
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
getAllPossibleClasses()
Uses the base urls and returns a list of all classes this parser should be able to load docs for (based on the root allclasses doc file(s))
|
ClassDocumentation |
parseFromFile(java.io.File file)
Attempts to download the documentation from the internet and return it
|
ClassDocumentation |
parseFromURL(java.lang.Class clazz,
java.io.File cachedDocFileLocalCache)
Attempts to download the documentation from the internet and return it
|
ClassDocumentation |
parseHTML(java.lang.String data)
Parses the string to a
ClassDocumentation object |
@NotNull ClassDocumentation parseFromURL(@NotNull java.lang.Class clazz, @Nullable java.io.File cachedDocFileLocalCache) throws java.io.IOException
clazz
- The class to get the docs forcachedDocFileLocalCache
- The location in which to store the downloaded file, if we found one that downloaded and parsed successfully. Null means
don't cachejava.io.IOException
- If there is an error reading the URL@NotNull ClassDocumentation parseFromFile(@NotNull java.io.File file) throws java.io.IOException
file
- The file containing the docjava.io.IOException
- If there is an error reading the file@NotNull ClassDocumentation parseHTML(java.lang.String data)
ClassDocumentation
objectdata
- The string to parsejava.lang.IllegalArgumentException
- If the value cannot be parsed@NotNull java.util.List<java.lang.String> getAllPossibleClasses()