public class ObjectSerializer extends java.lang.Object implements IModifier
Modifier and Type | Class and Description |
---|---|
class |
ObjectSerializer.StreamConnector
The stream connector provides object input and output streams depending
on the implementation of the underlying stream connector.
|
Modifier and Type | Field and Description |
---|---|
static short |
PLUGIN_ABILITY
The ability of the plug-in. [4][0].
|
EXTENSION_COMPRESSION, EXTENSION_DISCOVERY, EXTENSION_ENCRYPTION, EXTENSION_ROUTING, EXTENSION_SEMANTIC, EXTENSION_SERIALIZATION, EXTENSION_TRANSCEIVER
Constructor and Description |
---|
ObjectSerializer()
Creates a new simple serializer.
|
Modifier and Type | Method and Description |
---|---|
PluginDescription |
getPluginDescription()
Returns the plug-in description of this plug-in.
|
IStreamConnector |
openSession(IStreamConnector connector,
ISession session)
Determines whether the serializer is in a valid state.
|
boolean |
prepareSession(PluginDescription description,
NFCollection collection,
ISession session)
Negotiates the session properties of a connection with a remote target.
|
void |
setPluginManager(IPluginManager manager)
Sets the plug-in manager that is used to retrieve remote plug-in descriptions.
|
void |
start()
Called to start the plug-in.
|
void |
stop()
Called to stop the plug-in.
|
public static final short PLUGIN_ABILITY
public boolean prepareSession(PluginDescription description, NFCollection collection, ISession session)
prepareSession
in interface IModifier
collection
- The non-functional parameters.session
- The session data used to create a connector.description
- The plug-in description of the remote plug-in.public IStreamConnector openSession(IStreamConnector connector, ISession session)
openSession
in interface IModifier
connector
- The connector used to create the serializer connector.session
- The session data used to communicate with a remote serializer.public void start()
public void stop()
public void setPluginManager(IPluginManager manager)
setPluginManager
in interface IModifier
manager
- The plug-in manager.public PluginDescription getPluginDescription()
getPluginDescription
in interface IPlugin