An API's looks can be deceiving
Penetrate the hidden complexities that spoil simple conceptual
models of Java APIs. When you examine an API, your first
impressions are often wrong. In this Java Traps column, Michael
Daconta examines two cases where an intuitive model of how an
API should work trips over the complexity of implementation
details.
Class of the Month: The Reflection API
A number of popular Java technologies and frameworks depend on the Reflection API to function. Learn more about its many uses.
Explore the Dynamic Proxy API
Sun introduced the Dynamic Proxy API, which can basically mimic any interface. Add that to an abstract data model, and you can conform any loosely typed data to a strongly typed interface. This article discusses some of the Dynamic Proxy API's many benefits
Introduction to the Java Mail API
The Java Mail API, one of the latest standard extension APIs from Sun, should equally benefit client- and server-side application developers, with its platform- and protocol-independent mail/messaging solution. This article touches on some of the highlights of this API, demonstrating its ease of use and robust capabilities.
Java Media Framework Player API
The Java Media Player API, a portion of the Java Media Framework (JMF), lets Java programmers easily embed audio and video within applets and applications. Both static and streaming multimedia are supported from any valid URL. JMF players may be controlled by other players, providing for synchronous playback of multiple audio and video samples. This article gives an overview of the Java Media Framework and the JMF Player API. The fundamental classes and methods needed to create and use a player are outlined, with sample code for an example JMF applet. It includes an introduction to advanced issues, an outline of future development work, and some general conclusions.
Log4j delivers control over logging
The open source log4j API for Java offers fast, efficient log services. This article describes the log4j API, its unique features, and its design rationale
Managing the networked world with Java
The Java Management API shows a new direction for creating powerful Web-based network management tools of the future. We now explore the nooks and crannies of this new network management system framework.
Store objects using the JDK 1.4 Preferences API
The Preferences API(a lightweight, cross-platform persistence API introduced in JDK 1.4) is designed to store small amounts of data (string, simple byte arrays, and so on.) and was not intended to be an interface to a traditional database. It can, however, be effective as a storage device if your data can be expressed as simple objects. This article offers an introduction to the API, explains how objects are stored, demonstrates the process in action, and provides a code library to do the work.
The New Modality API in Mustang
A dialog box is a top-level pop-up window with a title and a border that is typically used to take some form of input from the user. With JDK 5.0 and earlier, a dialog box must have either a frame or another dialog box defined as its owner when the dialog box is constructed, even if the box is invisible. When the user minimizes the owner window of a visible dialog box, this automatically hides the dialog box from the user. When the user subsequently restores the owner window, the dialog box becomes visible again.
Using the Desktop API in Java SE 6 (Mustang)
With the default graphical user interface (GUI) look and feel, printing, and performance, the Java platform has come a long way in its effort to minimize the difference between the performance and integration of native applications and Java applications. Version 6 of the Java Platform, Standard Edition (Java SE), code-named Mustang, continues to narrow the gap with new system tray functionality, better print support for JTable, and now the Desktop API (java.awt.Desktop API). This article describes the new Desktop API, which allows Java applications to interact with the default applications associated with specific file types on the host platform. In order to describe the API more effectively, the article also features a simple application called DesktopDemo.
Using the Jena API to Process RDF
There has been growing interest in the Resource Description Framework (RDF) and a number of tools and libraries have been developed for processing it. This article describes one such library, Jena, a Java API for processing RDF. It is also the name of an open source implementation of the API.
Network Magazine Provides information Technology (IT) and network managers with strategic analysis, views of emerging technologies and product reports....
subscribe now