Doclets javadoc’s output format is determined by a ‘doclet’. The default,standard doclet is built-in to javadoc, and produces the HTML API documentation normally associated with javadoc. If you want to create custom output you can subclass the standard doclet, or you can write your own doclet.
For the adventurous, you can create XML or RTF; A good placed to start your doclet odyssey is at:
http://java.sun.com/j2se/1.4/toolodocs/javadoc/overview.html
Let’s look at a few simple examples of calling javadoc: To run javadoc against all the java files in the current directory,
% javadoc *.java (let us tried to start with an easy one.)
To run javadoc on a package called com.testpkg, first move to the parent directory of the fully qualified package (in other words, the directory containing the package), then
% javadoc –d /home/html-dest com.testpkg
In this case we used the –d flag to indicate the destination directory for the HTML output. So the command line reads, “Run javadoc, put the output in a directory called home/html-dest, and run the utility against all of the java files in the com.testpkg package.”

Other Capabilities javadoc has a wide range of command line options, in fact, a huge range of command-line options…so many that there is a facility that allows you to store your command-line options in a file. Let’s cover some of options you might find useful for your project:
windowtitle Allows you to specify the description that appears in the title bar of your browser window.
-header Allows you to specify a description that appears in the top right of your class documentation.
-footer Allows you to specify a description that appears in the lower
right ‘footer’ area of your class documentation
-bottom Allows you to specify a description that appears in the
bottom of your class documentation
-public Documents only public classes and members.
-protected This is the option if you don’t specify a command-line argument. It documents only protected and public classes and members.
Thanks



























