View RSS Feed

Recent Blogs Posts

  1. Apache IOUtils

    by , 02-24-2012 at 07:57 PM
    These utility methods are provided by the IOUtils:

    1. Reading
    2. Copying
    3. Writing

    Given methods work at:

    1. InputStream
    2. OutputStream
    3. Writer
    4. Reader

    Bytes would be read a URL by the help of this code and will make them printed.
    Java Code: This is the code to explain IOUtils
    InputStream in = new URL( "http://jakarta.apache.org" ).openStream();
     try {
       InputStreamReader inR = new InputStreamReader( in
    ...
    Categories
    Commons IO