Class JBossByteBufferMarshaller
java.lang.Object
org.wildfly.clustering.marshalling.AbstractByteBufferMarshaller
org.wildfly.clustering.marshalling.jboss.JBossByteBufferMarshaller
- All Implemented Interfaces:
Predicate<Object>, Predicate<Object>, ByteBufferMarshaller, Marshaller<Object, ByteBuffer>
A
ByteBufferMarshaller based on JBoss Marshalling.- Author:
- Paul Ferraro
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionJBossByteBufferMarshaller(org.jboss.marshalling.MarshallingConfiguration configuration, ClassLoader loader) Creates an unversioned marshaller using a single marshalling configuration.JBossByteBufferMarshaller(MarshallingConfigurationRepository repository, ClassLoader loader) Creates a versioned marshaller supporting multiple marshalling configurations. -
Method Summary
Modifier and TypeMethodDescriptionreadFrom(InputStream input) Reads an object from the specified input stream.booleantoString()voidwriteTo(OutputStream output, Object value) Writes the specified object to the specified output stream.Methods inherited from class AbstractByteBufferMarshaller
read, size, writeMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Predicate
and, compose, composeBinary, composeDouble, composeInt, composeLong, handle, negate, or, xor
-
Constructor Details
-
JBossByteBufferMarshaller
Creates a versioned marshaller supporting multiple marshalling configurations.- Parameters:
repository- a repository of marshalling configurationsloader- a class loader
-
JBossByteBufferMarshaller
public JBossByteBufferMarshaller(org.jboss.marshalling.MarshallingConfiguration configuration, ClassLoader loader) Creates an unversioned marshaller using a single marshalling configuration.- Parameters:
configuration- a marshalling configurationloader- a loader
-
-
Method Details
-
readFrom
Description copied from interface:ByteBufferMarshallerReads an object from the specified input stream.- Parameters:
input- an input stream- Returns:
- the unmarshalled object
- Throws:
IOException- if the object could not be read
-
writeTo
Description copied from interface:ByteBufferMarshallerWrites the specified object to the specified output stream.- Parameters:
output- an output streamvalue- an object to marshal- Throws:
IOException- if the object could not be written
-
test
-
toString
-