Java Good Stuff
Articles Index I/O Performance By Glen McCluskey March 1999 This article discusses and illustrates a variety of techniques for improving Java I/O performance. Most of the techniques center around tuning disk file I/O, but some are applicable to network I/O and window output as well. The first set of techniques presented below cover low-level I/O issues, and then higher-level issues such as compression, formatting, and serialization are discussed. Note, however, the discussion does not cover application design issues, such as choice of search algorithms and data structures, nor does it discuss system-level issues such as file caching.
Apache HttpClient - Tutorial Copyright © 2008 - 2012 Lars Vogel Apache HttpClient This tutorial describes how to use the Apache HttpClient library for accessing HTTP resources.
<IFRAME src="http://avpa.javalobby.org/servlet/view/html/zone?zid=32&pid=0&random=35946955" height="90" width="728" hspace="0" vspace="0" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"> <A href="http://avpa.javalobby.org/servlet/click/zone?zid=32&pid=0&lookup=true&random=35946955" target="_top"> <IMG src="http://avpa.javalobby.org/servlet/view/image/zone?zid=32&pid=0&random=35946955" height="90" width="728" hspace="0" vspace="0" border="0" alt="Click Here!"> </A> </IFRAME> <IFRAME src="http://avpa.javalobby.org/servlet/view/html/zone?
Till Java 1.4, threads could be implemented by either implementing Runnable or extending Thread. This was quite simple, but had a serious limitation - They have a run method that cannot return values. In order to side-step this, most programmers use side-effects (writing to a file etc.) to mimic returning values to the invoker of the thread. Java 5 introduces the Callable interface, that allows users to return values from a thread. This post describes the Callable and Future interfaces and shows an example of how to use these to interfaces.