Code example for FileWriter

Methods: close, flush

0
 
	@Override 
	public void endRecording() { 
		if (writer != null) {
			try { 
				writer.flush();
				writer.close();
				// chmod 4700 *      
			} catch (IOException e) {
				Logger.w("Cannot flush and close script cache writer", e);
			} 
		} 
		writer = null;
	} 
 
	@Override 
	public boolean isRecoding() { 
		return writer != null;
	} 
 
	@Override