jcontrol.system
Class NVRAM

java.lang.Object
  extended by jcontrol.system.NVRAM

public class NVRAM
extends Object

Stores persistent informations into NVRAM.


Field Summary
static int MAX_NVRAM_SIZE
          the max size of available nvram
 
Method Summary
static byte[] loadBytes()
          load bytes from NVRAM
static void storeBytes(byte[] bytes)
          store bytes to NVRAM (the bytearray must be smaller equal than MAX_NVRAM_SIZE)
 
Methods inherited from class java.lang.Object
clone, equals, getClass, notifyAll, toString, wait
 

Field Detail

MAX_NVRAM_SIZE

public static final int MAX_NVRAM_SIZE
the max size of available nvram

See Also:
Constant Field Values
Method Detail

loadBytes

public static byte[] loadBytes()
                        throws IOException
load bytes from NVRAM

Returns:
bytearray
Throws:
IOException

storeBytes

public static void storeBytes(byte[] bytes)
                       throws IOException
store bytes to NVRAM (the bytearray must be smaller equal than MAX_NVRAM_SIZE)

Parameters:
bytes - to be saved
Throws:
IOException