org.sapia.filestorm
Class Helper

java.lang.Object
  extended by org.sapia.filestorm.Helper

public class Helper
extends Object


Constructor Summary
Helper()
           
 
Method Summary
static void deleteDir(File dir)
           
static String getContentType(String fileName)
           
static String textStreamToString(InputStream is)
           
static long transfer(InputStream from, OutputStream to, int bufsize)
           
static File translate(File baseDir, String name, boolean mkdir)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Helper

public Helper()
Method Detail

textStreamToString

public static String textStreamToString(InputStream is)
                                 throws IOException
Throws:
IOException

transfer

public static long transfer(InputStream from,
                            OutputStream to,
                            int bufsize)
                     throws IOException
Throws:
IOException

translate

public static File translate(File baseDir,
                             String name,
                             boolean mkdir)
                      throws IOException
Throws:
IOException

getContentType

public static String getContentType(String fileName)

deleteDir

public static void deleteDir(File dir)


Copyright © 2007 Sapia Open Community, Inc. All Rights Reserved.