FileDocCategorySizeDatePackage
FileUtil.javaAPI DocAndroid 5.1 API1566Thu Mar 12 22:22:44 GMT 2015android.test.wakeuploop

FileUtil

public class FileUtil extends Object

Fields Summary
private static FileUtil
sInst
private static DateFormat
sDateFormat
Constructors Summary
private FileUtil()


      
Methods Summary
public static android.test.wakeuploop.FileUtilget()

        if (sInst == null) {
            sInst = new FileUtil();
        }
        return sInst;
    
public voidwriteDateToFile(java.io.File file)

        try {
            FileOutputStream fos = new FileOutputStream(file);
            fos.write(sDateFormat.format(new Date()).getBytes());
            fos.write('\n");
            fos.flush();
            fos.close();
        } catch (IOException ioe) {
            Log.e("FileUtil", "exception writing date to file", ioe);
        }