commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nicola...@apache.org
Subject cvs commit: jakarta-commons-sandbox/io/src/examples/org/apache/commons/io/bzip2 Bzip2Compress.java Bzip2Uncompress.java
Date Tue, 09 Jul 2002 14:55:33 GMT
nicolaken    2002/07/09 07:55:33

  Modified:    io/src/examples/org/apache/commons/io/bzip2
                        Bzip2Compress.java Bzip2Uncompress.java
  Log:
  Fixed compilation and old import.
  
  Revision  Changes    Path
  1.2       +1 -2      jakarta-commons-sandbox/io/src/examples/org/apache/commons/io/bzip2/Bzip2Compress.java
  
  Index: Bzip2Compress.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/io/src/examples/org/apache/commons/io/bzip2/Bzip2Compress.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Bzip2Compress.java	8 Jul 2002 22:13:43 -0000	1.1
  +++ Bzip2Compress.java	9 Jul 2002 14:55:32 -0000	1.2
  @@ -14,7 +14,6 @@
   import java.io.IOException;
   import java.io.InputStream;
   import java.io.OutputStream;
  -import org.apache.excalibur.bzip2.CBZip2OutputStream;
   
   /**
    * This simple example shows how to use the Bzip2 classes to compress a file.
  
  
  
  1.2       +9 -2      jakarta-commons-sandbox/io/src/examples/org/apache/commons/io/bzip2/Bzip2Uncompress.java
  
  Index: Bzip2Uncompress.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/io/src/examples/org/apache/commons/io/bzip2/Bzip2Uncompress.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Bzip2Uncompress.java	8 Jul 2002 22:13:43 -0000	1.1
  +++ Bzip2Uncompress.java	9 Jul 2002 14:55:32 -0000	1.2
  @@ -14,18 +14,20 @@
   import java.io.IOException;
   import java.io.InputStream;
   import java.io.OutputStream;
  -import org.apache.excalibur.bzip2.CBZip2InputStream;
   
   /**
    * This simple example shows how to use the Bzip2 classes to uncompress a file.
    *
    * @author <a href="mailto:peter@apache.org">Peter Donald</a>
  + * @author <a href="mailto:nicolaken@apache.org">Nicola Ken Barozzi</a>
    * @version $Revision$ $Date$
    */
   public class Bzip2Uncompress
   {
       public static void main( final String[] args )
       {
  +      try
  +      {
           if( 2 != args.length )
           {
               System.out.println( "java Bzip2Uncompress <input> <output>" );
  @@ -39,6 +41,11 @@
           copy( input, output );
           input.close();
           output.close();
  +      }catch(Exception e){
  +        e.printStackTrace();
  +        System.exit(1);       
  +      
  +      }
       }
   
       /**
  
  
  

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message