org.sapia.filestorm
Class Helper
java.lang.Object
org.sapia.filestorm.Helper
public class Helper
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Helper
public Helper()
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.