|
|
Migrating to 1.1 |
Changes Accross All Packages
Although the basic mechanism for exception handling did not change for the JDK 1.1, many new exception and error classes were added to JDK for 1.1. For the sake of brevity and deadlines, we do not list them here.Additions to
java.langThree new data type wrapper classes were added to the java.lang package in the JDK 1.1:
ByteShortVoidByteandShortare subclasses ofNumberand are similar to the other data type wrapper classes such asInteger.Voidwas added for completeness and is a subclass ofObject.Voidis used by the reflection methods to representvoidreturn types.The tutorial does not cover these classes. They will be covered in the second edition of The Java Language Specification and are covered online in the
javadoc-generated API documentation.Additions to
java.ioThejava.iopackage has been extended with character streams, which are like byte streams except that they read and write 16-bit Unicode characters rather than eight-bit bytes. Additionally,java.iohas been extended to support object serialization.The new classes are:
BufferedReaderandBufferedWriterCharArrayReaderandCharArrayWriterFileReaderandFileWriterFilterReaderandFilterWriterInputStreamReaderLineNumberReaderObjectInputStreamandObjectOutputStreamObjectStreamClassOutputStreamWriterPipedReaderandPipedWriterPrintWriterPushbackReaderReaderandWriterStringReaderandStringWriterThe new interfaces are:
All of the I/O classes, including the new character streams, are covered in Input and Output Streams
ExternalizableObjectInputObjectInputValidationObjectOutputSerializable.
Additions to
java.utilEight classes were added tojava.utilto support internationalization:Our online trail Writing Global Programs
CalendarGregorianCalendarListResourceBundleLocalePropertyResourceBundleResourceBundleSimpleTimeZoneTimeZonecontains information about writing Java programs that are independent of users' language and culture.
Two classes were added to
java.utilto support event handling:[PENDING: where to find information?]
EventListenerEventObjectAdditions to
java.netThree classes and one interface were added to thejava.netpackage:
DatagramSocketImplHttpURLConnectionMulticastSocketFileNameMap(an interface)Broadcasting Information to Multiple Recipients
provides an example of using a
MulticastSocket. The other classes and interfaces are not covered in this tutorial.Changes to
java.appletThe basic applet API hasn't changed, except for the addition of an attribute,ARCHIVE, to the<APPLET>tag. With the help of the newARCHIVEattribute, you can tell browsers to load your applet's files from Java archive (JAR) files. Using JAR files can significantly reduce applet loading time and help you work around unnecessary security restrictions. [PENDING: provide reference for more information]Since applets can use most of the classes in the JDK, most of the changes described in other trails apply to applets, as well. Applets are probably most affected by the 1.1 changes to the AWT (see the next section). Another significant change is that signed classes make it possible to create trusted applets (depending on browser support).
|
|
Migrating to 1.1 |