Synopses & Reviews
The Java Fundamental Classes Reference provides complete reference documentation on the core Java 1.1 classes. These classes contain architecture-independent methods that serve as Java's gateway to the real world, by providing access to resources such as the network and the host filesystem. The core classes also include utilities for working with strings, I/O streams, mathematical functions, vectors, and hash tables. The Java Fundamental Classes Reference covers the classes that comprise the java.lang,java.io, java.net, java.util, java.text, java.math, java.lang.reflect, and java.util.zip packages. These classes provide general-purpose functionality that is fundamental to every Java application.This book takes you beyond what you'd expect from a standard reference manual. Classes and methods are, of course, described in detail. But the book does much more. It offers tutorial-style explanations of the important classes in the Java core API. The first section of the book contains chapters that describe the ins and outs of strings and related classes, effective thread programming, and the use of the I/O classes, to name just a few of the topics. These chapters also include lots of sample code, so that you can learn by example.This edition of the Java Fundamental Classes Reference describes Version 1.1 of the Java Development Kit and includes:
- Easy-to-use reference material on every core Java class
- Tutorial-style explanations of important classes and examples that demonstrate their functionality
- Detailed coverage of all the essential classes in java.lang, including Object, String, and Thread
- Descriptions of all the I/O classes provided in the java.io package, including all of the new Reader, Writer, and object serialization classes in Java 1.1
- Material on using the classes in java.util effectively
- Coverage of all the networking classes in the java.net package
The
Java Fundamental Classes Reference is meant to be used in conjunction with the
Java AWT Reference. Together, these two reference manuals cover all of the classes in the Java core API. The
Java Language Reference completes the package by providing a detailed reference of the Java programming language. These manuals comprise the definitive set of documentation that you need to do serious programming with Java 1.1.O'Reilly & Associates also publishes a tutorial,
Exploring Java, if you need to get up to speed with this exciting new technology. For advanced Java programming topics, look for books from O'Reilly on network programming, threads, and database programming.i
Synopsis
The "Java Fundamental Classes Reference provides complete reference documentation on the core Java 1.1 classes.These classes contain architecture-independent methods that serve as Java's gateway to the real world by providing access to resources such as the network and the host filesystem.The core classes also include utilities for working with strings, I/O streams, mathematical functions, vectors, and hash tables. This book takes you beyond what you'd expect from a standard reference manual.Classes and methods are, of course, described in detail. However, you'll also find tutorial-style explanations of the important classes inthe Java core API and lots of sample code to help you learn by example. Part of O'Reilly's Java documentation series, this edition describesVersion 1.1 of the Java Development Kit and includes: Easy-to-use reference material on every core Java classTutorial-style explanations of important classes and examples that demonstrate their functionalityDetailed coverage of all the essential classes in "java.lang, including Object, String, and ThreadDescriptions of all the I/O classes provided in the "java.io package, including all of the new Reader, Writer, and object serialization classes in Java 1.1Material on using the classes in "java.util effectivelyCoverage of all the networking classes in the "java.net package
Synopsis
The "Java Fundamental Classes Reference" provides complete reference documentation on the core Java classes. These classes provide general-purpose functionality that is fundamental to every Java application. Easy-to-use reference material is provided, along with sample code to help you learn by example.
About the Author
Jonathan Knudsen is an author at O'Reilly & Associates. His books include The Unofficial Guide to Lego Mindstorms Robots, Java 2D Graphics, and Java Cryptography. He is the Courseware Writer for LearningPatterns.com.MARK GRAND is an Atlanta-based consultant with over twenty-three years of experience in distributed systems, object-oriented design, and Java. He is currently working on an open source framework for gluing components and programs into an application. He is also the author of Patterns in Java, Volume 2 and Java Enterprise Design Patterns (both from Wiley).
Table of Contents
Table of Contents
Preface
Chapter 1. Introduction
1.1 The java.lang Package
1.2 The java.lang.reflect Package
1.3 The java.io Package
1.4 The java.net Package
1.5 The java.util Package
1.6 The java.text Package
1.7 The java.math Package
1.8 The java.util.zip Package
Part 1. Using the Fundamental Classes
Chapter 2. Strings and Related Classes
2.1 String
2.2 StringBuffer
2.3 String Concatenation
2.4 StringTokenizer
Chapter 3. Threads
3.1 Using Thread Objects
3.2 Synchronizing Multiple Threads
Chapter 4. Exception Handling
4.1 Handling Exceptions
4.2 Declaring Exceptions
4.3 Generating Exceptions
Chapter 5. Collections
5.1 Enumerations
5.2 Vectors
5.3 Stacks
5.4 Hashtables
Chapter 6. I/O
6.1 Input Streams and Readers
6.2 Output Streams and Writers
6.3 File Manipulation
Chapter 7. Object Serialization
7.1 Object Serialization Basics
7.2 Writing Classes to Work with Serialization
7.3 Versioning of Classes
Chapter 8. Networking
8.1 Sockets
8.2 URL Objects
Chapter 9. Security
9.1 SecurityManager
9.2 ClassLoader
Chapter 10. Accessing the Environment
10.1 I/O
10.2 System Properties
10.3 Environment Variables
10.4 External Program Execution
10.5 Garbage Collection
10.6 Self Termination
Part 2. Reference
Chapter 11. The java.io Package
11.1 BufferedInputStream
11.2 BufferedOutputStream
11.3 BufferedReader
11.4 BufferedWriter
11.5 ByteArrayInputStream
11.6 ByteArrayOutputStream
11.7 CharArrayReader
11.8 CharArrayWriter
11.9 CharConversionException
11.10 DataInput
11.11 DataInputStream
11.12 DataOutput
11.13 DataOutputStream
11.14 EOFException
11.15 Externalizable
11.16 File
11.17 FileDescriptor
11.18 FileInputStream
11.19 FilenameFilter
11.20 FileNotFoundException
11.21 FileOutputStream
11.22 FileReader
11.23 FileWriter
11.24 FilterInputStream
11.25 FilterOutputStream
11.26 FilterReader
11.27 FilterWriter
11.28 InputStream
11.29 InputStreamReader
11.30 InterruptedIOException
11.31 InvalidClassException
11.32 InvalidObjectException
11.33 IOException
11.34 LineNumberInputStream
11.35 LineNumberReader
11.36 NotActiveException
11.37 NotSerializableException
11.38 ObjectInput
11.39 ObjectInputStream
11.40 ObjectInputValidation
11.41 ObjectOutput
11.42 ObjectOutputStream
11.43 ObjectStreamClass
11.44 ObjectStreamException
11.45 OptionalDataException
11.46 OutputStream
11.47 OutputStreamWriter
11.48 PipedInputStream
11.49 PipedOutputStream
11.50 PipedReader
11.51 PipedWriter
11.52 PrintStream
11.53 PrintWriter
11.54 PushbackInputStream
11.55 PushbackReader
11.56 RandomAccessFile
11.57 Reader
11.58 SequenceInputStream
11.59 Serializable
11.60 StreamCorruptedException
11.61 StreamTokenizer
11.62 StringBufferInputStream
11.63 StringReader
11.64 StringWriter
11.65 SyncFailedException
11.66 UnsupportedEncodingException
11.67 UTFDataFormatException
11.68 WriteAbortedException
11.69 Writer
Chapter 12. The java.lang Package
12.1 AbstractMethodError
12.2 ArithmeticException
12.3 ArrayIndexOutOfBoundsException
12.4 ArrayStoreException
12.5 Boolean
12.6 Byte
12.7 Character
12.8 Class
12.9 ClassCastException
12.10 ClassCircularityError
12.11 ClassFormatError
12.12 ClassLoader
12.13 ClassNotFoundException
12.14 Cloneable
12.15 CloneNotSupportedException
12.16 Compiler
12.17 Double
12.18 Error
12.19 Exception
12.20 ExceptionInInitializerError
12.21 Float
12.22 IllegalAccessError
12.23 IllegalAccessException
12.24 IllegalArgumentException
12.25 IllegalMonitorStateException
12.26 IllegalStateException
12.27 IllegalThreadStateException
12.28 IncompatibleClassChangeError
12.29 IndexOutOfBoundsException
12.30 Integer
12.31 InstantiationError
12.32 InstantiationException
12.33 InternalError
12.34 InterruptedException
12.35 LinkageError
12.36 Long
12.37 Math
12.38 NegativeArraySizeException
12.39 NoClassDefFoundError
12.40 NoSuchFieldError
12.41 NoSuchFieldException
12.42 NoSuchMethodError
12.43 NoSuchMethodException
12.44 NullPointerException
12.45 Number
12.46 NumberFormatException
12.47 Object
12.48 OutOfMemoryError
12.49 Process
12.50 Runnable
12.51 Runtime
12.52 RuntimeException
12.53 SecurityException
12.54 SecurityManager
12.55 Short
12.56 StackOverflowError
12.57 String
12.58 StringBuffer
12.59 StringIndexOutOfBoundsException
12.60 System
12.61 Thread
12.62 ThreadDeath
12.63 ThreadGroup
12.64 Throwable
12.65 UnknownError
12.66 UnsatisfiedLinkError
12.67 VerifyError
12.68 VirtualMachineError
12.69 Void
Chapter 13. The java.lang.reflect Package
13.1 Array
13.2 Constructor
13.3 Field
13.4 InvocationTargetException
13.5 Member
13.6 Method
13.7 Modifier
Chapter 14. The java.math Package
14.1 BigDecimal
14.2 BigInteger
Chapter 15. The java.net Package
15.1 BindException
15.2 ConnectException
15.3 ContentHandler
15.4 ContentHandlerFactory
15.5 DatagramPacket
15.6 DatagramSocket
15.7 DatagramSocketImpl
15.8 FileNameMap
15.9 HttpURLConnection
15.10 InetAddress
15.11 MalformedURLException
15.12 MulticastSocket
15.13 NoRouteToHostException
15.14 ProtocolException
15.15 ServerSocket
15.16 Socket
15.17 SocketException
15.18 SocketImpl
15.19 SocketImplFactory
15.20 URL
15.21 URLConnection
15.22 URLEncoder
15.23 URLStreamHandler
15.24 URLStreamHandlerFactory
15.25 UnknownHostException
15.26 UnknownServiceException
Chapter 16. The java.text Package
16.1 BreakIterator
16.2 CharacterIterator
16.3 ChoiceFormat
16.4 CollationElementIterator
16.5 CollationKey
16.6 Collator
16.7 DateFormat
16.8 DateFormatSymbols
16.9 DecimalFormat
16.10 DecimalFormatSymbols
16.11 FieldPosition
16.12 Format
16.13 MessageFormat
16.14 NumberFormat
16.15 ParseException
16.16 ParsePosition
16.17 RuleBasedCollator
16.18 SimpleDateFormat
16.19 StringCharacterIterator
Chapter 17. The java.util Package
17.1 BitSet
17.2 Calendar
17.3 Date
17.4 Dictionary
17.5 EmptyStackException
17.6 Enumeration
17.7 EventListener
17.8 EventObject
17.9 GregorianCalendar
17.10 Hashtable
17.11 ListResourceBundle
17.12 Locale
17.13 MissingResourceException
17.14 NoSuchElementException
17.15 Observable
17.16 Observer
17.17 Properties
17.18 PropertyResourceBundle
17.19 Random
17.20 ResourceBundle
17.21 SimpleTimeZone
17.22 Stack
17.23 StringTokenizer
17.24 TimeZone
17.25 TooManyListenersException
17.26 Vector
Chapter 18. The java.util.zip Package
18.1 Adler32
18.2 CheckedInputStream
18.3 CheckedOutputStream
18.4 Checksum
18.5 CRC32
18.6 DataFormatException
18.7 Deflater
18.8 DeflaterOutputStream
18.9 GZIPInputStream
18.10 GZIPOutputStream
18.11 Inflater
18.12 InflaterInputStream
18.13 ZipEntry
18.14 ZipException
18.15 ZipFile
18.16 ZipInputStream
18.17 ZipOutputStream
Part 3. Appendixes
Appendix A. The Unicode 2.0 Character Set
Appendix B. The UTF-8 Encoding
Index