Class JavaByteBufferMarshaller
java.lang.Object
org.wildfly.clustering.marshalling.AbstractByteBufferMarshaller
org.wildfly.clustering.marshalling.java.JavaByteBufferMarshaller
- All Implemented Interfaces:
Predicate<Object>, Predicate<Object>, ByteBufferMarshaller, Marshaller<Object, ByteBuffer>
A
ByteBufferMarshaller based on Java serialization.- Author:
- Paul Ferraro
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionJavaByteBufferMarshaller(ClassLoader loader, ObjectInputFilter filter) Creates a new marshaller using the specified class loader and filter.JavaByteBufferMarshaller(Serializer<ClassLoader> classLoaderSerializer, ClassLoader loader, ObjectInputFilter filter) Creates a new marshaller using the specified class loader and filter. -
Method Summary
Modifier and TypeMethodDescriptionreadFrom(InputStream in) Reads an object from the specified input stream.booleantoString()voidwriteTo(OutputStream out, Object object) 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
-
JavaByteBufferMarshaller
Creates a new marshaller using the specified class loader and filter.- Parameters:
loader- a class loaderfilter- a filter use secure serialization
-
JavaByteBufferMarshaller
public JavaByteBufferMarshaller(Serializer<ClassLoader> classLoaderSerializer, ClassLoader loader, ObjectInputFilter filter) Creates a new marshaller using the specified class loader and filter.- Parameters:
classLoaderSerializer- a class loader serializerloader- a class loaderfilter- a filter use secure serialization
-
-
Method Details
-
test
-
readFrom
Description copied from interface:ByteBufferMarshallerReads an object from the specified input stream.- Parameters:
in- 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:
out- an output streamobject- an object to marshal- Throws:
IOException- if the object could not be written
-
toString
-