org.apache.jetspeed.util
Class FileCopy

java.lang.Object
  extended byorg.apache.jetspeed.util.FileCopy

public class FileCopy
extends java.lang.Object


Field Summary
static int BUFFER_SIZE
           
 
Constructor Summary
FileCopy()
           
 
Method Summary
static void copy(java.lang.String source, java.lang.String destination)
           
static void copyFromURL(java.lang.String source, java.lang.String destination)
           
static void copyStream(java.io.InputStream input, java.io.OutputStream output, byte[] buffer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BUFFER_SIZE

public static final int BUFFER_SIZE
See Also:
Constant Field Values
Constructor Detail

FileCopy

public FileCopy()
Method Detail

copy

public static final void copy(java.lang.String source,
                              java.lang.String destination)
                       throws java.io.IOException
Throws:
java.io.IOException

copyFromURL

public static final void copyFromURL(java.lang.String source,
                                     java.lang.String destination)
                              throws java.io.IOException
Throws:
java.io.IOException

copyStream

public static final void copyStream(java.io.InputStream input,
                                    java.io.OutputStream output,
                                    byte[] buffer)
                             throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2000-2005 Apache Software Foundation. All Rights Reserved.