Code example for BufferedOutputStream

Methods: closewrite

0
        } 
    } 
 
    public static void updateTestStatus(String statusFile, String s) {
        try { 
            BufferedOutputStream bos = new BufferedOutputStream(
                    new FileOutputStream(statusFile));
            bos.write(s.getBytes());
            bos.close();
        } catch (Exception e) {
            Log.e(LOGTAG, "Cannot update file " + statusFile);
        } 
    } 
 
    public static String readTestStatus(String statusFile) {
        // read out the test name it stopped last time. 
        String status = null;
        File testStatusFile = new File(statusFile);
        if(testStatusFile.exists()) {
            try { 
Stop searching for code, let great code find you!  Add Codota to your java IDE