JDK.1.4 New Features and Enhanced Content Summary

zhaozj2021-02-16  74

The new features of the Java 2 SDK 1.4 Standard Edition are listed below. A complete list of features that contain features that previous SDK versions can be obtained from the property guide.

Java 2 platform

XML processing

New I / O API

Safety

Java 2DTM technology

Graphical I / O structure

Java print service

AWT

Swing

Drag and drop

Fault Record API

Javatm Web Start Products

Long-term continuous JavaBeansTM components

JDBCTM 3.0 API

Assertion tool

Parameter selection API

Java virtual machine

performance

Network support, including IPv6

RMI

Serialization

Java naming and directory interface TM (JNDI)

Corba, Java IDL, and RMI-IIOP

JavaTM debugger structure

globalization

Javatm Plug-In Product

Collection structure

Ease of use

Rule expression

Math

reflection

Java native interface

tool

Tools and utilities

-------------------------------------------------- ------------------------------

Java 2 platform

XML processing

Javatm API processed for XML has been added to the Java 2 platform. It provides support for the basic processing of XML through a set of standard Java platform APIs.

New I / O Apis

New I / O (NIO) APIs provide new features and improved performance in buffering, character set support, rule expressions, file I / O, and upgraded network I / O fields.

Safety

Now JavaTM Password System Extension (JAVATM Secure Socket Extension (JSSE), And JavaTM Identification and Authentication Service (JAAS) security features have been integrated into Javatm 2 SDK, standard version (J2SDK), 1.4, not As an optional package.

There are two new security features here:

The JavaTM GSS-API can be used using the communication application of the Kerberos V5 mechanism for secure exchange information.

The JavaTM Certification Path API in the java.security.cert package contains new classes and methods that allow you to create and verify the certificate path (that is, "Certificate Chain").

Due to import control restrictions, J2SDK, version 1.4 version introduced JCE permission policy files allow the use of "strong" but limited cryptographic systems. These files can be obtained in the "unrestricted" version of the encryption intensity.

Due to import control restrictions, this released JSSE implementation provides a powerful password kit, but the default SSLSocketFactory and SSLServersocketFactory are not allowed to be replaced. For more information, please see the JSSE Reference Guide.

As JaaS is integrated into J2SDK, Java.Security.Policy API handles the principal-based challenge, and the default policy implementation supports the entrusted certification record. Therefore, access control now is not only based on what code is running, but also based on who is running it.

Support for dynamic policies has also been added. J2SDK 1.4, the class is static and licensed by querying security policies during loading. This binding survival period is controlled by the survival of the class loader. In version 1.4, this binding is different until the security check is executed. Binding life is controlled by the survival of security policies.

Java 2DTM technology

Java 2D contains many new features: performance improvement, hardware acceleration support for buffer graphics, plug-in graphics I / O structure, new print service API, and several new fonts.

Graphical I / O structure

The Java graphics I / O structure provides a pluggable structure that works in the file and the graphic accessed through the network. It sufficiently provides greater adaptability and powerful support than current APIs in graphics.

Java Print Service API

JavaTM printing services are new Java printing APIs that enable clients and server-side applications: discovery and selecting print services based on their capabilities.

Specify the data print format.

Submit a print job that supports document types.

AWT

The AWT package changes focuses on improving the robustness, behavior, and performance of the GUI program. The new focus structure replaces the original implementation and solves many errors due to the incompatibility between the platform and the incompatibility between the AWT and SWING components. The new full-screen exclusive mode API provides high-performance graphics through the suspend window system, which is beneficial to applications like games or other drawing intensive programs. By new graphics environment, it is pointed out that ignorance support is supported in a graphical environment, and the keyboard is supported (Headless Support). For programs that need to be fully controlled to the application's appearance, the processed frame modification is now available. Activate this feature prevents the framework bar, system menu, border, or other graphics component dependent on the local operating system. The built-in support of the pulley mouse with a roller wheel in the middle can also be used. Similarly, the new mouse pulley listener class allows the user to customize the behavior of the mouse pulley. The AWT package has been modified to all 64-bit adaptation and can run on the Solaris machine with 64-bit and 32-bit addresses.

Swing

Many new features have been added to swing. The new Spinner component is a single-line input domain that allows users to select a number or value by using a pair of small up / down arrow buttons. The new formatted text domain component allows formatted dates, numbers, and strings, just like only the text domain of the decade price. Windows Look and Feel implements support for 2000/98 versions. Seamless Drag and drop between the new drag-and-drop structure provides a seamless drag and drop support at the same time to deliver your own Swing Components - Write a detail describing your own data model is all what you need. Swing's progress bar components have been enhanced to support fuzzy states; fuzzy progress bars showing a continuous animation to display a time-consuming operation instead of display completion degree. Due to huge customer requirements, tab components have been enhanced to support scrollable tabs. Due to this feature, if all options cannot be displayed in a row, the tab component will display a scrollable option strip instead of putting the options multiple lines. The Popup and Popup Factory classes that have been packaged in prior to private methods are now public, so the programmer can customize or create their own pop-up components. The new focus structure is completely integrated into swing.

Drag and drop

Swing has added data transfer support between applications. A drag and drop operation is a data transfer request that has been specified by the graphical pointing device. In the case of copy / paste, data transmission often starts with a keyboard. There are two forms of data transfer: drag and drop (DND) support and transmissions through clipping / copy / paste. See SWING data transfer.

Fault Record API

The Java Fault Record API promotes the service and maintenance of software in customers by providing fault records for end users, system administrators, domain service engineers and software development team. Fault Record API captures errors such as security failure, configuration errors, performance bottlenecks, and / or applications or platforms.

Javatm Web Start Products

Java Web Start products are new application development technologies bonded by J2SE 1.4.0. With Java Web Start, you start the application to see the link to the web page. If the application is not on your computer, the Java Web Start automatically downloads all files you need. It then caches those files on your computer, so those applications can start from your computer when you want it to start - either from an icon on your desk or a link on your browser . No matter what method you use, start the application, the latest version of the application is always present.

Long-term sustained JavaBeans components

The new continuous model is designed to handle the transformation process of the graphic JavaBean and the fixed outer shape. The new API is suitable for graphic JavaBean creates files like their feature described in text. JDBC 3.0 API

JDBC 3.0 API is composed of a java.sql package and a Javax.sql package that provides generic data access for Java languages. With JDBC 3.0 API, you can actually access any data sources, from the relational database to the electronic data table, and normal files. JDBC technology also provides a general basis for the tools and optional interfaces that can be established.

The new feature includes the ability to set the save point in the transaction, maintaining a result set of submitted transactions, reuse the previous declaration, get metadata in the declared parameter, get the automatically generated keyword, and open multiple result sets at a time. There are two new JDBC data types, Boolean and Datalink, which can be operated outside the data source using the Datalink data type. This release also established a relationship between JDBC service provider interfaces and connector structures.

Assertion tool

The assertion tool has been added to the Java 2 platform. As a programmer, the status of the computer program is the true boolean expression. For example, after sorting a list, the programmer can assert the column ascending order. The rule of assessment is one of the most powerful tools to determine the correctness of the code because it is quickly disclosed by the programmer 's behavior of the program.

Parameter selection API

This new feature is a simple API for manipulating user parameters and configuration data. The application requires parameters and configuration data to accommodate different users, environment and needs. Applications require a way to store, get, and modify these data. This demand is satisfied by the parameter selection API. Parameter Selection API is intended to replace the commonly used java.util.properties class, correcting it, while maintaining it.

Java virtual machine

This released Java virtual machine contains several enhancements.

Support for 64-bit SolaristM-SparctM platforms.

Error handling mechanism.

Concurrent garbage seter.

Record a new tool for the garbage collection event.

The Classic virtual machine is no longer part of Java 2 SDK.

performance

This release contains a lot of performance enhancements in many aspects of the platform. See performance enhancement to obtain a detailed description.

Network support, including IPv6

The new feature contains IPv6 support based on TCP and UDP applications, unconnected / non-binding socket support, more flexible socket creation, binding, and connection. A mechanism called Java safety socket extension provides encrypted data transmission through a socket; the new class URI allows URI constructors and parsing without the protocol handler. The FTP protocol handler is modified to comply with the current standard. The default character set is now UTF8 and the API that can be used with other character sets has been added.

A new class, network interface, enumeration of the interface, and address, JNDI DNS SP support in inetaddress enables the application to be a pure Java naming service provider. The TCP extracted data is supported for previous applications; a UDP connection method registers the address of the destination address to the operating system, allowing an asynchronous error in the UDP socket; SOCKS V5 and V4 TCP all support include and the agent on the version. Consult. In addition, there is also improved in the flow availability, response header processing and error processing.

RMI

Some static methods in java.rmi.server.rmiclassLoader now represent the instance of the new service provider interface, java.rmi.server.rmiclassloaderspi. For a given application, this service provider object can be set. Add RMI Dynamic Load Behavior. By default, the service provider realizes the standard behavior of all static methods of RMiclassLoader. See Class Document RMiclassLoader and RMiclassLoadersPi get more information.

Serialization

This release has several changes and strengthens on the serialization API, including

Support for known non-serialized objects are not accessed serial data streams.

Support type method readObjectNodata. Important error correction.

Java naming and directory interface TM (JNDI)

The Internet Domain Name Service System (DNS) service program is now part of V1.4. This component allows applications to read data stored on DNS.

JNDI Lightweight Directory Access Protocol Services has increased security, which makes applications to establish security conferences based on existing LDAP connections and can use different authentication protocols.

JNDI CORBA Object Services (COS) Naming Server supports the Interoperable Naming Service (INS) specification (99-12-03).

See JNDI Enhancement to get more information.

Corba, Java IDL, and RMI-IIOP

Java 2 now contains a portable object adapter (POA) object request agency (ORB). ORB enables communication between the CORBA objects through the object requestor (client) and object requesting the server to arrive at each other. The POA ORB allows programmers to create objects to implement portability between different ORB products and provide support for fixed identity objects. Learn more about IDLs between J2SE V.1.3 and J2SE V.1.4, connect to Java (TM) IDL: J2SE 1.3 and 1.4 variations.

JavaTM debugger structure

Heat exchange

This feature has been added to allow class to be updated under the control of the debugger.

Instance filter

EventRequests can now specify an instance filter, which can limit the generation of events that can only be generated by those specified objects.

VmdeathRequests

Now a request can control the termination notification of the target virtual machine, allowing synchronous clearance to close.

globalization

Unicode 3.0 support

Character processing in J2SE 1.4 is based on Unicode 3.0 standard. This affects the Character class and String classes in the java.lang package, while affecting the text finishing and two-way text analysis capabilities in the java.text package.

Thai and Hindi support

Thai and Hindi are supported in all functions. See the local support documentation to get the full information of the local support and output system.

Javatm Plug-in Product

Java Plug-in 1.4 provides the following new features: Multi-version support, so multi-version JRE can develop in the same environment and Java Plug-in can choose the version it needs; through Java security socket extension (JSSE) Not a browser HTTPS support; enhancement applet hide, so other files such as GIF, JPEG, XML can be hidden with class files into the jar; Applet continues, so Applets can still talk through the browser.

1.4 version also provides access to DOM; assertion and fault record support by standard, W3C definitions; including availability of Applet loading progress bar; improved JAR compression to speed download speed.

Collection structure

The set structure in J2SDK1.4 has several enhancements, including a tag interface for advertisement random access, identity (rather than equalization) MAP, INSERTION-ORDER-PRESERVING MAP, and SET implementation, and for manipulating from the list New algorithm for return values. See the collection structure enhancement to obtain details.

Ease of use

New feature support:

Memorant navigation on JTABBedpane

Text editing by helping technology

Ease of use of HTML components

Swing action ease of use

Navigate the list of the first letters of the list item

Rule expression

The new package java.util.Regex contains a class that matches the character sequence that relies on the specified mode.

Math

A new efficient method for generating the number of entries has been added to the class java.math.biginteger, which does not require a caller to specify what.

reflection

Some reflection operations are java.lang.Reflect.Field.Ivoke (), java.lang.reflect.constructor.newinstance (), and class.newinstance (), for higher Performance is rewritten. Reflection calls and instantiations are several times better than the previous release. Java native interface

The JNI in V 1.4 has been enhanced to reflect the new features of the Java.NIO package: direct buffering. The direct buffered content can reside in the memory of this unit rather than in the usual garbage set stack. See JNI Enhancement.

Tools and utilities

See the tool changes to the detailed details of the summary here.

The Java Application Launcher provides command line option support to support the new assertion tool. In the SolarisTM operating system environment (SparctM Platform Standard Edition) The new command line option can specify 64-bit or 32-bit operations. On all platforms, new options -Xloggc: file records each garbage collection event in the specified file.

The Javadoc tool now includes a value of a static member inside the document. See the tool change connection for the bug fixes. Mif Doculets (downloaded from SDK) has a primary update - it produces the API documentation from the source file to FrameMaker and PDF format.

Native2ASCII Tools Configurable, now correctly handles source files encoded using Unicode, such as the default encoding under WinNT.

The IDLJ tool now produces the server binding under Portable Servant Inheritance Model. This change contains new default behaviors and new command line options that allow you to continue to generate backward compatible server bindings. Learn more Portable Servant Inheritance Model.

ORBD Tools, or Object Request Broker Daemon, instead of Transient Naming Service, TNameServ. ORBD includes Transient Naming Service and a persistent name service. ORBD Tools make the client transparent in the CORBA environment and calls a permanent object on the server. The ORBD tool combines the server manager, INS (Interoperable Naming Service), and features that boot the named server (Bootstrap Name Server). When using ServerTool, when the client wants to access the server side, the Server Manager is positioned, registered and activated a server.

ServerTool is a new tool for this release. ServerTool provides an easy-to-use interface for application developers on a server on registration, logout, launch, and closing a server.

The RMIC compiler provides a new option for the portable object adapter (POA) that supports remote method (RMI). POA makes the portability of ORB's sellers in other applications. Learn more about POA content. Activate POA support when using the RMIC compiler, use the parameter rmic -ily -po.

The graphic policy kit has been enhanced so that you can specify that the primary domain is used to indicate what user is granted specific access control permissions.

转载请注明原文地址:https://www.9cbs.com/read-13342.html

New Post(0)