I understand that Javadoc is a documentation generator from Sun Microsystems for generating API documentation in HTML format from Java source code.
I infer that the documentation is stored onto an HTML file.
Is there a way I can access it?
If yes where is it stored?
The word Javadoc can refer to
/** ... */)The Javadoc program is contained in Sun’s (or now Oracle’s) Java Development Kit (JDK).
If you have installed a JDK (which you should if you do Java development), you can call it on the command line, passing it the package names to document, or some source file names. You should also indicate the output directory, using the
-doption.I’m assuming the following directory (and package) structure in my example below:
package de.dclj.paul.examples;andpublic class HelloWorld { ... }]Then you use the following command line:
It will then create a the documentation in the docs directory, with an
index.htmlwhich you can open in your web browser, and other files reachable from it.For more details have a look at the documentation linked above. For an example output, have a look at the Java Standard API Javadoc.
If you are using an IDE, you likely have a generate Javadoc button there, and the IDE might even show the formatted output of documentation of single classes or methods on the fly.