Class JavaByteBufferMarshaller
java.lang.Object
org.wildfly.clustering.marshalling.AbstractByteBufferMarshaller
org.wildfly.clustering.marshalling.java.JavaByteBufferMarshaller
- All Implemented Interfaces:
Predicate<Object>, org.wildfly.clustering.function.Predicate<Object>, org.wildfly.clustering.marshalling.ByteBufferMarshaller, org.wildfly.clustering.marshalling.Marshaller<Object, ByteBuffer>
public class JavaByteBufferMarshaller
extends org.wildfly.clustering.marshalling.AbstractByteBufferMarshaller
A
ByteBufferMarshaller based on Java serialization.- Author:
- Paul Ferraro
-
Field Summary
Fields inherited from interface org.wildfly.clustering.function.Predicate
ALWAYS, NEVER -
Constructor Summary
ConstructorsConstructorDescriptionJavaByteBufferMarshaller(ClassLoader loader, ObjectInputFilter filter) Creates a new marshaller using the specified class loader and filter.JavaByteBufferMarshaller(org.wildfly.clustering.marshalling.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) booleantoString()voidwriteTo(OutputStream out, Object object) Methods inherited from class org.wildfly.clustering.marshalling.AbstractByteBufferMarshaller
read, size, writeMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.wildfly.clustering.function.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(org.wildfly.clustering.marshalling.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
- Throws:
IOException
-
writeTo
- Throws:
IOException
-
toString
-