Skip to Content
Java Network Programming, Second Edition
book

Java Network Programming, Second Edition

by Elliotte Rusty Harold
August 2000
Intermediate to advanced
760 pages
21h
English
O'Reilly Media, Inc.
Content preview from Java Network Programming, Second Edition

Conventions Used in This Book

Body text is Times Roman, normal, like you’re reading now.

A Constant width font is used for:

  • Code examples and fragments

  • Keywords, operators, data types, variable names, class names, and interface names that might appear in a Java program

  • Program output

  • Tags that might appear in an HTML document

A bold constant width is used for:

  • Command lines and options that should be typed verbatim on the screen

An italicized constant width font is used for:

  • Replaceable or variable code fragments

An italicized font is used for:

  • New terms where they are defined

  • Pathnames, filenames, and program names. (However, if the program name is also the name of a Java class, it is given in a monospaced font, like other class names.)

  • Host and domain names (java.oreilly.com)

  • Titles of other books (Java I/O)

Significant code fragments and complete programs are generally placed in a separate paragraph like this:

Socket s = new Socket("java.oreilly.com", 80);
if (!s.getTcpNoDelay(  )) s.setTcpNoDelay(true);

When code is presented as fragments rather than complete programs, the existence of the appropriate import statements should be inferred. For example, in the previous code fragment you may assume that java.net.Socket was imported.

Some examples intermix user input with program output. In these cases, the user input will be displayed in bold, as in this example from Chapter 10:

% telnet localhost 7
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
This is a test This is a test ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Java Network Programming, 4th Edition

Java Network Programming, 4th Edition

Elliotte Rusty Harold
Java Concurrency, 2/e

Java Concurrency, 2/e

Douglas Schmidt

Publisher Resources

ISBN: 1565928709Supplemental ContentCatalog PageErrata