Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.websody.util
Class IO  view IO download IO.java

java.lang.Object
  extended byorg.websody.util.IO

public class IO
extends java.lang.Object

Collection of some useful I/O helpers like recursive deletion of files.


Constructor Summary
IO()
           
 
Method Summary
static boolean clear(java.io.File file)
          clears recursivly
static boolean clear(java.lang.String file)
          clears recursivly
static void copyFile(java.io.File source, java.io.File destination)
          Copy file from source to destination.
static void copyStream(java.io.InputStream in, java.io.OutputStream out)
           
static boolean delete(java.io.File file)
          Deletes a file recursivly
static boolean delete(java.lang.String file)
          Deletes a file recursivly
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IO

public IO()
Method Detail

delete

public static boolean delete(java.lang.String file)
Deletes a file recursivly


delete

public static boolean delete(java.io.File file)
Deletes a file recursivly


clear

public static boolean clear(java.lang.String file)
clears recursivly


clear

public static boolean clear(java.io.File file)
clears recursivly


copyFile

public static void copyFile(java.io.File source,
                            java.io.File destination)
                     throws java.io.IOException
Copy file from source to destination. The directories up to destination will be created if they don't already exist. destination will be overwritten if it already exists.


copyStream

public static void copyStream(java.io.InputStream in,
                              java.io.OutputStream out)
                       throws java.io.IOException