Class JavaByteBufferMarshaller
- java.lang.Object
-
- org.wildfly.clustering.marshalling.jdk.JavaByteBufferMarshaller
-
- All Implemented Interfaces:
org.wildfly.clustering.marshalling.spi.ByteBufferMarshaller,org.wildfly.clustering.marshalling.spi.Marshallability,org.wildfly.clustering.marshalling.spi.Marshaller<Object,ByteBuffer>
public class JavaByteBufferMarshaller extends Object implements org.wildfly.clustering.marshalling.spi.ByteBufferMarshaller
AByteBufferMarshallerbased on Java serialization.- Author:
- Paul Ferraro
-
-
Constructor Summary
Constructors Constructor Description JavaByteBufferMarshaller(org.wildfly.clustering.marshalling.Externalizer<ClassLoader> externalizer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisMarshallable(Object object)ObjectreadFrom(InputStream in)voidwriteTo(OutputStream out, Object object)
-
-
-
Constructor Detail
-
JavaByteBufferMarshaller
public JavaByteBufferMarshaller(org.wildfly.clustering.marshalling.Externalizer<ClassLoader> externalizer)
-
-
Method Detail
-
isMarshallable
public boolean isMarshallable(Object object)
- Specified by:
isMarshallablein interfaceorg.wildfly.clustering.marshalling.spi.Marshallability
-
readFrom
public Object readFrom(InputStream in) throws IOException
- Specified by:
readFromin interfaceorg.wildfly.clustering.marshalling.spi.ByteBufferMarshaller- Throws:
IOException
-
writeTo
public void writeTo(OutputStream out, Object object) throws IOException
- Specified by:
writeToin interfaceorg.wildfly.clustering.marshalling.spi.ByteBufferMarshaller- Throws:
IOException
-
-