cvs commit: spice/sandbox/repository/componenthaus/src/java/org/componenthaus/util/file FileManagerImpl.java

Mike Hogan <[email protected]> Mon, 10 Nov 2003 12:21:42 -0800
Newsgroups gmane.comp.java.spice.cvs
Message-ID <[email protected]>
hogie       03/11/10 12:21:42

  Modified:    sandbox/repository/componenthaus/src/java/org/componenthaus/util/file
                        FileManagerImpl.java
  Log:
  Preview release with plexus-utils components
  
  Revision  Changes    Path
  1.8       +0 -12     spice/sandbox/repository/componenthaus/src/java/org/componenthaus/util/file/FileManagerImpl.java
  
  Index: FileManagerImpl.java
  ===================================================================
  RCS file: /cvsroot/spice/spice/sandbox/repository/componenthaus/src/java/org/componenthaus/util/file/FileManagerImpl.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- FileManagerImpl.java	9 Nov 2003 14:00:49 -0000	1.7
  +++ FileManagerImpl.java	10 Nov 2003 20:21:42 -0000	1.8
  @@ -28,18 +28,6 @@
           }
       }
   
  -    private void copy(File from, Writer to) throws IOException {
  -        assert from != null;
  -        assert to != null;
  -        final BufferedInputStream in = new BufferedInputStream(new FileInputStream(from));
  -        final byte[] buff = new byte[chunk];
  -        int bytesRead = -1;
  -        while (-1 != (bytesRead = in.read(buff, 0, buff.length))) {
  -            to.write(new String(buff,0,bytesRead));
  -        }
  -        in.close();
  -    }
  -
       public void copy(InputStream from, File to) throws IOException {
           FileOutputStream os = new FileOutputStream(to);
           copy(from,os);
  
  
  


-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/