Framework Professional Edition Package


com.prosyst.mbs.framework.flash
Interface FlashManager


public interface FlashManager

This module can be used in case there are available RAM and Flash file systems on the device, on which the framework will run. The Flash file system is persistent, but with slow write access, whereas the RAM file system is not persistent and with faster write access.

Author:
Teodor Todorov, Svetozar Dimov

Method Summary
 void flushFile(java.io.File file, FileListener listener)
          Initiates request to copy the specified file from ram to flash.
 java.io.File getFile(java.io.File file)
          Copies the specified file from flash to ram and returns a reference to the copied file.
 

Method Detail

getFile

java.io.File getFile(java.io.File file)
Copies the specified file from flash to ram and returns a reference to the copied file.

Parameters:
file - the file to copy from flash to ram
Returns:
the copied file in ram

flushFile

void flushFile(java.io.File file,
               FileListener listener)
Initiates request to copy the specified file from ram to flash. Also a listener to be notified when copying has completed successfully can be added.

Parameters:
file - the file to copy from ram to flash
listener - listener to be notified

Framework Professional Edition Package


Copyright © 1999-2007 ProSyst Software GmbH. All Rights Reserved