| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private final CodecManager |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Object | decodeFromWire(int
the position in the buffer where the message should be read from. pos, Buffer the buffer to read the message from buffer)Implements io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Called by Vert.x when a message is decoded from the wire. |
| public void | encodeToWire(Buffer
the message should be written into this buffer buffer, Object the message that is being sent o)Implements io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Called by Vert.x when marshalling a message to the wire. |
| public String | |
| public byte | systemCodecID()
Implements io. Used to identify system codecs. |
| public Object | transform(Object
the sent message o)Implements io. If a message is sent locally across the event bus, this method is called to transform the message from the sent type S to the received type R |
| codecManager | back to summary |
|---|---|
| private final CodecManager codecManager | |
| SerializableCodec | back to summary |
|---|---|
| public SerializableCodec(CodecManager codecManager) | |
| decodeFromWire | back to summary |
|---|---|
| public Object decodeFromWire(int pos, Buffer buffer) Implements io. Doc from io. References Deprecated
See corresponding docs for further information. Called by Vert.x when a message is decoded from the wire. | |
| encodeToWire | back to summary |
|---|---|
| public void encodeToWire(Buffer buffer, Object o) Implements io. Doc from io. References Deprecated
See corresponding docs for further information. Called by Vert.x when marshalling a message to the wire. | |
| name | back to summary |
|---|---|
| public String name() Implements io. Doc from io. The codec name. Each codec must have a unique name. This is used to identify a codec when sending a message and for unregistering codecs. | |
| systemCodecID | back to summary |
|---|---|
| public byte systemCodecID() Implements io. Doc from io. Used to identify system codecs. Should always return -1 for a user codec.
| |
| transform | back to summary |
|---|---|
| public Object transform(Object o) Implements io. Doc from io. If a message is sent locally across the event bus, this method is called to transform the message from the sent type S to the received type R | |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected Class | resolveClass(ObjectStreamClass
an instance of class desc)ObjectStreamClassOverrides java. Load the local class equivalent of the specified stream class description. |
| CheckedClassNameObjectInputStream | back to summary |
|---|---|
| pack-priv CheckedClassNameObjectInputStream(InputStream in) throws IOException | |
| resolveClass | back to summary |
|---|---|
| protected Class Overrides java. Doc from java. Load the local class equivalent of the specified stream class description. Subclasses may implement this method to allow classes to be fetched from an alternate source. The corresponding method in The default implementation of this method in
Class.forName(desc.getName(), false, loader) loader is the first class loader on the current
thread's stack (starting from the currently executing method) that is
neither the platform
class loader nor its ancestor; otherwise, loader is the
platform class loader. If this call results in a
ClassNotFoundException and the name of the passed
ObjectStreamClass instance is the Java language keyword
for a primitive type or void, then the Class object
representing that primitive type or void will be returned
(e.g., an ObjectStreamClass with the name
"int" will be resolved to Integer.TYPE).
Otherwise, the ClassNotFoundException will be thrown to
the caller of this method.
| |