| 
 | CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.tangosol.util.Base
com.tangosol.util.BitHelper
com.tangosol.util.ExternalizableHelper
com.tangosol.io.pof.SafeConfigurablePofContext.SafePofHolder
public static final class SafeConfigurablePofContext.SafePofHolder
A SafePofHolder represents the serialized form of any valid POF user type instance.
The type identifier and version of the serialized POF user type can be obtained via thegetTypeId() and getVersionId()
 accessors respectively. The serialized POF user type properties are
 treated as "future" properties and can be obtained via the
 getFutureData() accessor.
| Field Summary | |
|---|---|
| static int | TYPE_IDThe type identifier of a SafePofHolder. | 
| Constructor Summary | |
|---|---|
| SafeConfigurablePofContext.SafePofHolder()Default constructor. | |
| SafeConfigurablePofContext.SafePofHolder(int nTypeId,
                                         int nVersion,
                                         Binary binData)Create a new SafePofHolder from the given POF user type identifier, version identifier and serialized property data. | |
| Method Summary | |
|---|---|
|  boolean | equals(Object o) | 
|  Binary | getData()Return the serialized property values of the POF user type instance represented by this SafePofHolder. | 
|  int | getDataVersion()Obtain the version associated with the data stream from which this object was deserialized. | 
|  Binary | getFutureData()Return all the unknown remainder of the data stream from which this object was deserialized. | 
|  int | getImplVersion()Determine the serialization version supported by the implementing class. | 
|  int | getTypeId()Return the type identifier of the POF user type instance represented by his SafePofHolder. | 
|  int | getVersionId()Return the version identifier of the POF user type instance represented by this SafePofHolder. | 
|  int | hashCode() | 
|  void | readExternal(DataInput in)Restore the contents of this object by loading the object's state from the passed DataInput object. | 
|  void | readExternal(ObjectInput in) | 
|  void | readExternal(PofReader in)Restore the contents of a user type instance by reading its state using the specified PofReader object. | 
|  void | setDataVersion(int nVersionId)Set the version associated with the data stream with which this object is being deserialized. | 
|  void | setFutureData(Binary binFuture)Store the unknown remainder of the data stream from which this object is being deserialized. | 
|  String | toString() | 
|  void | writeExternal(DataOutput out)Save the contents of this object by storing the object's state into the passed DataOutput object. | 
|  void | writeExternal(ObjectOutput out) | 
|  void | writeExternal(PofWriter out)Save the contents of a POF user type instance by writing its state using the specified PofWriter object. | 
| Methods inherited from class com.tangosol.util.BitHelper | 
|---|
| countBits, countBits, countBits, indexOfLSB, indexOfLSB, indexOfLSB, indexOfMSB, indexOfMSB, indexOfMSB, toBitString, toBitString, toBitString | 
| Field Detail | 
|---|
public static final int TYPE_ID
| Constructor Detail | 
|---|
public SafeConfigurablePofContext.SafePofHolder()
public SafeConfigurablePofContext.SafePofHolder(int nTypeId,
                                                int nVersion,
                                                Binary binData)
nTypeId - the type identifier of the POF user type instancenVersion - the version identifier of the POF user type instancebinData - the serialized POF user type property data| Method Detail | 
|---|
public void readExternal(PofReader in)
readExternal in interface PortableObjectin - the PofReader from which to read the object's statepublic void writeExternal(PofWriter out)
writeExternal in interface PortableObjectout - the PofWriter to which to write the object's statepublic int getImplVersion()
getImplVersion in interface Evolvablepublic int getDataVersion()
getDataVersion in interface Evolvablepublic void setDataVersion(int nVersionId)
setDataVersion in interface EvolvablenVersionId - the version of the data in the data stream that will be
                  used to deserialize this object; greater than or equal to
                  zeropublic Binary getFutureData()
getFutureData in interface Evolvablepublic void setFutureData(Binary binFuture)
setFutureData in interface EvolvablebinFuture - future data in binary form
public void readExternal(ObjectInput in)
                  throws IOException
readExternal in interface ExternalizableIOException
public void writeExternal(ObjectOutput out)
                   throws IOException
writeExternal in interface ExternalizableIOException
public void readExternal(DataInput in)
                  throws IOException
readExternal in interface ExternalizableLitein - the DataInput stream to read data from in order to restore
            the state of this object
IOException - if an I/O exception occurs
NotActiveException - if the object is not in its initial
            state, and therefore cannot be deserialized into
public void writeExternal(DataOutput out)
                   throws IOException
writeExternal in interface ExternalizableLiteout - the DataOutput stream to write the state of this object to
IOException - if an I/O exception occurspublic int hashCode()
public boolean equals(Object o)
public String toString()
public int getTypeId()
public int getVersionId()
public Binary getData()
| 
 | CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||