第1章 java类库概述 1
1.1 java类库 1
1.2 java类库中类的层次关系 1
1.3 名词说明 7
第2章 java.applet包 11
2.1 Interface java.applet.AppletContext 11
2.2 Interface java.applet.AppletStub 14
2.3 Interface java.applet.AudioClip 15
2.4 Class java.applet.Applet 16
第3章 java.awt包 25
3.1 Class java.awt.BorderLayout 26
3.2 Class java.awt.Button 28
3.3 Class java.awt.Canvas 31
3.4 Class java.awt.CardLayout 35
3.5 Class java.awt.Checkbox 38
3.6 Class java.awt.CheckboxGroup 42
3.7 Class java.awt.CheckboxMenuItem 44
3.8 Class java.awt.Choice 46
3.9 Class java.awt.Color 49
3.10 Class java.awt.Component 56
3.11 Class java.awt.Container 72
3.12 Class java.awt.Dialog 79
3.13 Class java.awt.Dimension 82
3.14 Class java.awt.Event 84
3.15 Class java.awt.FileDialog 96
3.16 Class java.awt.FlowLayout 100
3.17 Class java.awt.Font 103
3.18 Class java.awt.FontMetrics 107
3.19 Class java.awt.Frame 113
3.20 Class java.awt.Graphics 116
3.21 Class java.awt.GridBagConstraints 127
3.22 Class java.awt.GridBagLayout 133
3.23 Class java.awt.GridLayout 140
3.24 Class java.awt.Image 143
3.25 Class java.awt.Insets 146
3.26 Class java.awt.Label 150
3.27 Interface java.awt.LayoutManager 152
3.28 Class java.awt.List 157
3.29 Class java.awt.MediaTracker 164
3.30 Class java.awt.Menu 170
3.31 Class java.awt.MenuBar 174
3.32 Class java.awt.MenuComponent 176
3.33 Interface java.awt.MenuContainer 178
3.34 Class java.awt.MenuItem 181
3.35 Class java.awt.Panel 184
3.36 Class java.awt.Point 185
3.37 Class java.awt.Polygon 188
3.38 Class java.awt.Rectangle 192
3.39 Class java.awt.Scrollbar 198
3.40 Class java.awt.TextArea 203
3.41 Class java.awt.TextComponent 206
3.42 Class java.awt.TextField 208
3.43 Class java.awt.Toolkit 211
3.44 Class java.awt.Window 215
3.45 Class java.awt.AWTException 218
3.46 Class java.awt.AWTError 219
第4章 java.awt.image包 220
4.1 Class java.awt.image.ColorModel 220
4.2 Class java.awt.image.CropImageFilter 224
4.3 Class java.awt.image.DirectColorModel 229
4.4 Class java.awt.image.FilteredImageSource 234
4.5 Interface java.awt.image.ImageConsumer 236
4.6 Classjava.awt.image.ImageFilter 243
4.7 Interface java.awt.image.ImageObserver 249
4.8 Interface java.awt.image.ImageProducer 252
4.9 Class java.awt.image.IndexColorModel 258
4.10 Class java.awt.image.MemoryImageSource 264
4.11 Class java.awt.image.PixelGrabber 270
4.12 Class java.awt.image.RGBImageFilter 277
第5章 java.io包 287
5.1 Interface java.io.DataInput 288
5.2 Interface java.io.DataOutput 291
5.3 Class java.io.BufferedInputStream 294
5.4 Class java.io.BufferedOutputStream 298
5.5 Class java.io.ByteArrayInputStream 301
5.6 Class java.io.ByteArrayOutputStream 303
5.7 Class java.io.DataInputStream 308
5.8 Class java.io.DataOutputStream 314
5.9 Class java.io.File 318
5.10 Class java.io.FileDescriptor 325
5.11 Class java.io.FileInputStream 327
5.12 Interface java.io.FilenameFilter 331
5.13 Class java.io.FileOutputStream 332
5.14 Class java.io.FilterInputStream 335
5.15 Class java.io.FilterOutputStream 340
5.16 Class java.io.InputStream 343
5.17 Class java.io.LineNumberInputStream 348
5.18 Class java.io.OutputStream 353
5.19 Class java.io.PipedInputStream 356
5.20 Class java.io.PipedOutputStream 360
5.21 Class java.io.PrintStream 361
5.22 Class java.io.PushbackInputStream 367
5.23 Class java.io.RandomAccessFile 372
5.24 Class java.io.SequenceInputStream 380
5.25 Class java.io.StreamTokenizer 382
5.26 Class java.io.StringBufferInputStream 389
5.27 Class java.io.EOFException 392
5.28 Class java.io.FileNotFoundException 394
5.30 Class java.io.InterruptedIOException 396
5.29 Class java.io.IOException 396
5.31 Class java.io.UTFDataFormatException 398
第6章 java.lang包 400
6.1 Class java.lang.Boolean 401
6.2 Class java.lang.Character 405
6.3 Class java.lang.Class 412
6.4 Class java.lang.ClassLoader 415
6.5 Class java.lang.Double 422
6.6 Class java.lang.Float 428
6.7 Class java.lang.Integer 434
6.8 Class java.lang.Long 440
6.9 Class java.lang.Math 447
6.10 Class java.lang.Number 455
6.11 Class java.lang.Object 458
6.12 Class java.lang.Process 464
6.13 Interface java.lang.Runnable 465
6.14 Class java.lang.Runtime 467
6.15 Class java.lang.SecurityManager 469
6.16 Class java.lang.String 474
6.17 Class java.lang.StringBuffer 491
6.18 Class java.lang.System 500
6.19 Class java.lang.Thread 505
6.20 Class java.lang.ThreadGroup 516
6.21 Class java.lang.Throwable 523
6.22 Class java.lang.ArithmeticException 527
6.23 Class java.lang.ArrayIndexOutOfBoundsException 528
6.24 Class java.lang.ArrayStoreException 529
6.25 Class java.lang.ClassCastException 530
6.26 Class java.lang.ClassNotFoundException 532
6.27 Class java.lang.Exceptiont 533
6.28 Class java.lang.IllegalAccessException 536
6.29 Class java.lang.IllegalArgumentException 537
6.30 Class java.lang.IllegalThreadStateException 538
6.31 Class java.lang.IndexOutOfBoundsException 540
6.32 Class java.lang.InstantiationException 541
6.33 Class java.lang.InterruptedException 542
6.34 Class java.lang.NegativeArraySizeException 543
6.35 Class java.lang.NoSuchMethodException 545
6.36 Class java.lang.NullPointerException 546
6.37 Class java.lang.NumberFormatException 547
6.38 Class java.lang.RuntimeException 548
6.39 Class java.lang.SecurityException 549
6.40 Class java.lang.StringIndexOutOfBoundsException 550
6.41 Class java.lang.AbstractMethodError 551
6.42 Class java.lang.ClassCircularityError 553
6.43 Class java.lang.ClassFormatError 554
6.44 Class java.lang.CloneNotSupportedException 554
6.45 Class java.lang.Error 556
6.46 Class java.lang.IllegalAccessError 557
6.47 Class java.lang.IncompatibleClassChangeError 558
6.48 Class java.lang.InstantiationError 559
6.49 Class java.lang.InternalError 560
6.50 Class java.lang.LinkageError 561
6.51 Class java.lang.NoClassDefFoundError 562
6.52 Class java.lang.NoSuchFieldError 563
6.53 Class java.lang.NoSuchMethodError 564
6.54 Class java.lang.OutOfMemoryError 566
6.55 Class java.lang.StackOverflowError 566
6.56 Class java.lang.ThreadDeath 568
6.57 Class java.lang.UnknownError 568
6.58 Class java.lang.UnsatisfiedLinkError 569
6.59 Class java.lang.VerifyError 570
6.60 Class java.lang.VirtualMachineError 571
第7章 java.net包 573
7.1 Interface java.net.ContentHandlerFactory 573
7.2 Interface java.net.SocketImplFactory 576
7.3 Interface java.net.URLStreamHandlerFactory 577
7.4 Class java.net.ContentHandler 578
7.5 Class java.net.DatagramPacket 579
7.6 Class java.net.DatagramSocket 582
7.7 Class java.net.InetAddress 585
7.8 Class java.net.ServerSocket 589
7.9 Class java.net.Socket 593
7.10 Class java.net.SocketImpl 596
7.11 Class java.net.URL 599
7.12 Class java.net.URLConnection 606
7.13 Class java.net.URLEncoder 615
7.14 Class java.net.URLStreamHandler 616
7.15 Class java.net.MalformedURLException 618
7.16 Class java.net.ProtocolException 619
7.17 Class java.net.SocketException 620
7.18 Class java.net.UnknownHostException 622
7.19 Class java.net.UnknownServiceException 623
第8章 java.util包 625
8.1 Class java.util.BitSet 625
8.2 Class java.util.util.Date 629
8.3 Class java.util.Dictionary 639
8.4 Interface java.util.Enumeration 644
8.5 Class java.util.Hashtable 645
8.6 Class java.util.Observable 650
8.7 Interface java.util.Observer 653
8.8 Class java.util.Properties 655
8.9 Class java.util.Random 658
8.10 Class java.util.Stack 662
8.11 Class java.util.StringTokenizer 664
8.12 Class java.util.Vector 669
8.13 Class java.util.EmptyStackException 678
8.14 Class java.util.NoSuchElementException 679
参考书目 681