Constant width font is used for:
Code examples
Class, variable, and method names within the text
Italicized font is used for:
Filenames
Host and domain names
URLs
When a new method or class is introduced, its definition will appear beginning with italicized text like this:
Check whether the current thread is allowed to modify the state of the parameter thread.
In addition, one of the following symbols may appear next to a definition:
Indicates that the method/class is available only in 1.2.
Indicates that the method/class has been deprecated in 1.2.
There are some examples of commands scattered through the book, especially in sections and appendices that deal with administration. By convention, all examples are shown as they would be executed on a Unix system, e.g.:
piccolo% keytool -export -alias sdo -file /tmp/sdo.cer Enter keystore password: ****** Certificate stored in file </tmp/sdo.cer>
In these examples, the text typed by the user or administrator is always shown in bold font; the remaining text is output from the command (the string piccolo% indicates a command prompt). On other systems, the names of the files would have to be changed to conform to that system (e.g., C:\sdo.cer for a Windows system). However, note that while Windows systems often use a forward-slash (/) for command-line options, Java tools (even on those systems) universally use a hyphen (-) to indicate command-line options. In these examples, then, only the filenames are different between platforms.
Copyright © 2001 O'Reilly & Associates. All rights reserved.