| 
 | " 2013 FRC Java API" | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.squawk.ObjectMemoryFile
public final class ObjectMemoryFile
An ObjectMemoryFile encapsulates all the data in a serialized object graph. The format of a serialized object graphic is described by the following pseudo C struct:
    ObjectMemory {
        u4 magic               // 0xDEADBEEF
        u2 minor_version;
        u2 major_version;
        u4 attributes;         // mask of the ATTRIBUTE_* constants in this class
        u4 parent_hash;
        utf8 parent_uri;
        u4 root;               // offset (in bytes) in 'memory' of the root of the graph
        u4 size;               // size (in bytes) of memory
        u1 oopmap[((size / HDR.BYTES_PER_WORD) + 7) / 8];
        u1 padding[n];         // 0 <= n < HDR.BYTES_PER_WORD to align 'memory' on a word boundary
        u1 memory[size];
        u1 typemap[size];      // only present if ATTRIBUTE_TYPEMAP is set
    }
 
| Field Summary | |
|---|---|
| static int | ATTRIBUTE_32BITDenotes a object memory file that is only compatible with a 32 bit system. | 
| static int | ATTRIBUTE_BIGENDIANDenotes a object memory file that is in big endian format. | 
| static int | ATTRIBUTE_TYPEMAPDenotes a object memory file that has a type map describing the type of the value at every address in the 'memory' component. | 
|  int | attributes | 
|  int | major | 
|  int | minor | 
|  ObjectMemory | objectMemory | 
|  int | parentHash | 
|  String | parentURI | 
| Constructor Summary | |
|---|---|
| ObjectMemoryFile(int minor,
                 int major,
                 int attributes,
                 int parentHash,
                 String parentURI,
                 ObjectMemory objectMemory) | |
| Method Summary | |
|---|---|
|  boolean | isBigEndian()Determines if attributesvalue in this object memory file denoted a big endian format memory. | 
| Methods inherited from class java.lang.Object | 
|---|
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static final int ATTRIBUTE_TYPEMAP
AddressType.
public static final int ATTRIBUTE_32BIT
public static final int ATTRIBUTE_BIGENDIAN
public final int minor
public final int major
public final int attributes
public final int parentHash
public final String parentURI
public final ObjectMemory objectMemory
| Constructor Detail | 
|---|
public ObjectMemoryFile(int minor,
                        int major,
                        int attributes,
                        int parentHash,
                        String parentURI,
                        ObjectMemory objectMemory)
| Method Detail | 
|---|
public boolean isBigEndian()
attributes value in this object memory file denoted a big endian format memory.
(this.attributes & ATTRIBUTE_BIGENDIAN) != 0| 
 | " 2013 FRC Java API" | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||