|
Sun SPOT API |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.squawk.ObjectMemoryLoader
com.sun.squawk.FlashObjectMemoryLoader
public class FlashObjectMemoryLoader
| Field Summary |
|---|
| Fields inherited from class com.sun.squawk.ObjectMemoryLoader |
|---|
reader |
| Constructor Summary | |
|---|---|
FlashObjectMemoryLoader(com.sun.squawk.ObjectMemoryReader reader,
boolean loadIntoReadOnlyMemory)
|
|
| Method Summary | |
|---|---|
static int |
getByte(int i)
|
protected int |
getHash(byte[] dummy)
Calculates the hash of an array of bytes. |
protected byte[] |
loadMemory(int size)
Loads the 'memory' component of the object memory from the input stream. |
protected BitSet |
loadOopMap(int size)
Loads the 'oopmap' component of the object memory from the input stream. |
protected Address |
relocateMemory(ObjectMemory parent,
byte[] buffer,
BitSet oopMap)
Relocates the memory. |
protected void |
skipMemoryPadding(String parentURI,
int memorySize)
Skips the padding that precedes the 'memory' item to ensure that it is word aligned with respect to the start of the object memory file. |
| Methods inherited from class com.sun.squawk.ObjectMemoryLoader |
|---|
hash, load, loadHeader |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FlashObjectMemoryLoader(com.sun.squawk.ObjectMemoryReader reader,
boolean loadIntoReadOnlyMemory)
reader - loadIntoReadOnlyMemory - | Method Detail |
|---|
protected byte[] loadMemory(int size)
ObjectMemoryLoader
loadMemory in class ObjectMemoryLoadersize - the size of memory as specified by the 'size' element of the objct memory
protected int getHash(byte[] dummy)
ObjectMemoryLoader
getHash in class ObjectMemoryLoaderdummy - the byte array to hash
arr
protected void skipMemoryPadding(String parentURI,
int memorySize)
ObjectMemoryLoader
skipMemoryPadding in class ObjectMemoryLoaderparentURI - the value of the 'parent_uri' item in the object memory filememorySize - the value of the 'size' item in the object memory file
protected Address relocateMemory(ObjectMemory parent,
byte[] buffer,
BitSet oopMap)
ObjectMemoryLoader
relocateMemory in class ObjectMemoryLoaderparent - the loaded/resolved parent object memorybuffer - the contents of the 'memory' componentoopMap - the bit set encapsulating the 'oopmap' component
protected BitSet loadOopMap(int size)
ObjectMemoryLoader
loadOopMap in class ObjectMemoryLoadersize - the size of memory as specified by the 'size' element of the objct memory
public static int getByte(int i)
i -
|
Sun SPOT API |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||