Class Serializer.Provided<T>
java.lang.Object
org.wildfly.clustering.marshalling.Serializer.Provided<T>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.wildfly.clustering.marshalling.Serializer
Serializer.Provided<T> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReads an object from the specified input stream.Returns the size of the buffer to use for marshalling the specified object, if known.<V> Serializer<V> Creates a wrapped serializer that delegates to this serializer applying the specified wrapping/unwrapping functions.voidwrite(DataOutput output, T value) Writes the specified object to the specified output streamMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.wildfly.clustering.marshalling.Serializer
toFormatter
-
Constructor Details
-
Provided
-
-
Method Details
-
write
Description copied from interface:SerializerWrites the specified object to the specified output stream- Specified by:
writein interfaceSerializer<T>- Parameters:
output- the data output streamvalue- an object to serialize- Throws:
IOException- if an I/O error occurs
-
read
Description copied from interface:SerializerReads an object from the specified input stream.- Specified by:
readin interfaceSerializer<T>- Parameters:
input- a data input stream- Returns:
- the deserialized object
- Throws:
IOException- if an I/O error occurs
-
size
Description copied from interface:SerializerReturns the size of the buffer to use for marshalling the specified object, if known.- Specified by:
sizein interfaceSerializer<T>- Parameters:
object- the object to be sized- Returns:
- the buffer size (in bytes), or empty if unknown.
-
wrap
Description copied from interface:SerializerCreates a wrapped serializer that delegates to this serializer applying the specified wrapping/unwrapping functions.- Specified by:
wrapin interfaceSerializer<T>- Type Parameters:
V- the wrapper type- Parameters:
unwrapper- an unwrapping functionwrapper- a wrapping function- Returns:
- a wrapped serializer
-