org.gcube.portlets.user.homelibrary.util
Class Util
java.lang.Object
org.gcube.portlets.user.homelibrary.util.Util
public class Util
- extends Object
- Author:
- Federico De Faveri defaveri@isti.cnr.it
|
Constructor Summary |
Util()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
tmpMagic
protected static File tmpMagic
tmpGlobs
protected static File tmpGlobs
Util
public Util()
cleanDir
public static void cleanDir(File dir)
- Clean and delete the specified dir.
- Parameters:
dir - the target dir.
readStreamAsString
public static String readStreamAsString(InputStream is)
throws IOException
- Read the entire input stream as string. The system encoding is used.
- Parameters:
is - the input stream.
- Returns:
- the read string.
- Throws:
IOException - if an error occurs.
Copyright © 2013. All Rights Reserved.