Package | Description |
---|---|
com.tangosol.io.pof |
Contains classes related to POF serialization and deserialization.
|
com.tangosol.io.pof.reflect |
Contains classes related to POF stream navigation and manipulation.
|
com.tangosol.util |
Contains various generic utilities.
|
com.tangosol.util.extractor |
Contains
ValueExtractor and
ValueUpdater related classes. |
Modifier and Type | Class and Description |
---|---|
class |
ConfigurablePofContext
This class implements the
PofContext interface using information
provided in a configuration file (or in a passed XML configuration). |
class |
SafeConfigurablePofContext
SafeConfigurablePofContext is an extension of ConfigurablePofContext that can
serialize and deserialize any valid POF user type, even those that have not
been explicitly configured, as well as any Java serializable types
(Serializable, Externalizable, or ExternalizableLite).
|
class |
SimplePofContext
Basic
PofContext implementation. |
Modifier and Type | Field and Description |
---|---|
protected PofContext |
PofBufferReader.m_ctx
The PofContext to use to realize user data types as Java objects.
|
protected PofContext |
PofBufferWriter.m_ctx
The PofContext used by this PofBufferWriter to serialize user types.
|
Modifier and Type | Method and Description |
---|---|
PofContext |
PofBufferReader.getPofContext()
Return the PofContext object used by this PofReader to deserialize user
types from a POF stream.
|
PofContext |
PofBufferWriter.getPofContext()
Return the PofContext object used by this PofWriter to serialize user
types to a POF stream.
|
PofContext |
PofReader.getPofContext()
Return the PofContext object used by this PofReader to deserialize user
types from a POF stream.
|
PofContext |
PofWriter.getPofContext()
Return the PofContext object used by this PofWriter to serialize user
types to a POF stream.
|
Modifier and Type | Method and Description |
---|---|
protected Class |
PortableTypeSerializer.getClassForTypeId(PofContext ctx,
int nTypeId)
Return the class associated with a specified type identifier, or null
if the identifier is not defined in the current POF context.
|
static int |
PofHelper.getJavaTypeId(Object o,
PofContext ctx)
Return an identifier that represents the Java type of the specified
object.
|
static int |
PofHelper.getPofTypeId(Class clz,
PofContext ctx)
Return an identifier that represents the POF type of the specified
class.
|
void |
PofBufferReader.setPofContext(PofContext ctx)
Configure the PofContext object used by this PofReader to deserialize
user types from a POF stream.
|
void |
PofBufferWriter.setPofContext(PofContext ctx)
Configure the PofContext object used by this PofWriter to serialize
user types to a POF stream.
|
void |
PofReader.setPofContext(PofContext ctx)
Configure the PofContext object used by this PofReader to deserialize
user types from a POF stream.
|
void |
PofWriter.setPofContext(PofContext ctx)
Configure the PofContext object used by this PofWriter to serialize
user types to a POF stream.
|
Constructor and Description |
---|
PofBufferReader(ReadBuffer.BufferInput in,
PofContext ctx)
Construct a new PofBufferReader that will read a POF stream from the
passed BufferInput object.
|
PofBufferWriter(WriteBuffer.BufferOutput out,
PofContext ctx)
Construct a new PofBufferWriter that will write a POF stream to the
passed BufferOutput object.
|
PofBufferWriter(WritingPofHandler handler,
PofContext ctx)
Construct a new PofBufferWriter that will write a POF stream using
the passed WritingPofHandler.
|
UserTypeReader(PofBufferReader parent,
ReadBuffer.BufferInput in,
PofContext ctx,
int nTypeId,
int nVersionId)
Construct a parser for parsing the property values of a user type.
|
UserTypeReader(ReadBuffer.BufferInput in,
PofContext ctx,
int nTypeId,
int nVersionId)
Construct a parser for parsing the property values of a user type.
|
UserTypeWriter(PofBufferWriter parent,
WriteBuffer.BufferOutput out,
PofContext ctx,
int nTypeId,
int iProp)
Construct a UserTypeWriter for writing the property values of a
user type.
|
UserTypeWriter(PofBufferWriter parent,
WritingPofHandler handler,
PofContext ctx,
int nTypeId,
int iProp)
Construct a UserTypeWriter for writing the property values of a
user type.
|
UserTypeWriter(PofBufferWriter parent,
WritingPofHandler handler,
PofContext ctx,
int nTypeId,
int iProp,
int nId)
Construct a UserTypeWriter for writing the property values of a
user type.
|
UserTypeWriter(WriteBuffer.BufferOutput out,
PofContext ctx,
int nTypeId,
int iProp)
Construct a UserTypeWriter for writing the property values of a
user type.
|
UserTypeWriter(WritingPofHandler handler,
PofContext ctx,
int nTypeId,
int iProp)
Construct a UserTypeWriter for writing the property values of a
user type.
|
Modifier and Type | Method and Description |
---|---|
PofContext |
AbstractPofValue.getPofContext()
Return the POF context to use for serialization and deserialization.
|
Modifier and Type | Method and Description |
---|---|
static Object |
PofReflectionHelper.ensureType(Object o,
int nType,
PofContext ctx)
Validate that the supplied object is compatible with the specified type.
|
static Class |
PofReflectionHelper.getClass(int nType,
PofContext ctx)
Determine the class associated with the given type identifier.
|
protected static PofValue |
PofValueParser.instantiatePofValue(PofValue valueParent,
int nType,
ReadBuffer bufValue,
PofContext ctx,
int of,
ReadBuffer.BufferInput in)
Creates a PofValue instance.
|
static PofValue |
PofValueParser.parse(ReadBuffer buf,
PofContext ctx)
Parses POF-encoded binary and returns an instance of a
PofValue
wrapper for it. |
protected static PofValue |
PofValueParser.parseUniformValue(PofValue valueParent,
int nType,
ReadBuffer bufValue,
PofContext ctx,
int of)
Parses a uniform POF-encoded binary and returns an instance of a
PofValue wrapping the binary. |
protected static PofValue |
PofValueParser.parseValue(PofValue valueParent,
ReadBuffer bufValue,
PofContext ctx,
int of)
Parse a POF-encoded binary and return an instance of a
PofValue
wrapping the binary. |
Constructor and Description |
---|
AbstractPofValue(PofValue valueParent,
ReadBuffer bufValue,
PofContext ctx,
int of,
int nType)
Construct a PofValue instance wrapping the supplied buffer.
|
ComplexPofValue(PofValue valueParent,
ReadBuffer bufValue,
PofContext ctx,
int of,
int nType,
int ofChildren)
Construct a PofValue instance wrapping the supplied buffer.
|
NilPofValue(PofValue valueParent,
PofContext ctx,
int of,
int nType,
int nIndex)
Construct a NilPofValue instance.
|
PofArray(PofValue valueParent,
ReadBuffer bufValue,
PofContext ctx,
int of,
int nType,
int ofChildren,
int cElements)
Construct a PofArray instance wrapping the supplied buffer.
|
PofCollection(PofValue valueParent,
ReadBuffer bufValue,
PofContext ctx,
int of,
int nType,
int ofChildren,
int cElements)
Construct a PofCollection instance wrapping the supplied buffer.
|
PofSparseArray(PofValue valueParent,
ReadBuffer bufValue,
PofContext ctx,
int of,
int nType,
int ofChildren)
Construct a PofSparseArray instance wrapping the supplied buffer.
|
PofUniformArray(PofValue valueParent,
ReadBuffer bufValue,
PofContext ctx,
int of,
int nType,
int ofChildren,
int cElements,
int nElementType)
Construct a PofUniformArray instance wrapping the supplied buffer.
|
PofUniformCollection(PofValue valueParent,
ReadBuffer bufValue,
PofContext ctx,
int of,
int nType,
int ofChildren,
int cElements,
int nElementType)
Construct a PofUniformCollection instance wrapping the supplied buffer.
|
PofUniformSparseArray(PofValue valueParent,
ReadBuffer bufValue,
PofContext ctx,
int of,
int nType,
int ofChildren,
int nElementType)
Construct a PofUniformSparseArray instance wrapping the supplied buffer.
|
PofUserType(PofValue valueParent,
ReadBuffer bufValue,
PofContext ctx,
int of,
int nType,
int ofChildren,
int nVersion)
Construct a PofUserType instance wrapping the supplied buffer.
|
SimplePofValue(PofValue valueParent,
ReadBuffer bufValue,
PofContext ctx,
int of,
int nType)
Construct a SimplePofValue instance wrapping the supplied buffer.
|
Modifier and Type | Class and Description |
---|---|
static class |
NullImplementation.NullPofContext
An implementation of PofContext that does nothing.
|
Modifier and Type | Method and Description |
---|---|
static PofContext |
NullImplementation.getPofContext()
Factory method: Obtain a null implementation of a PofContext.
|
Modifier and Type | Method and Description |
---|---|
protected int |
PofExtractor.getPofTypeId(PofContext ctx)
compute the expected pof type id based on the class.
|