public abstract class MarshallerEncoder extends Object implements Encoder
StreamingMarshaller to convert objects to byte[] and back.| Constructor and Description |
|---|
MarshallerEncoder(Marshaller marshaller) |
| Modifier and Type | Method and Description |
|---|---|
Object |
fromStorage(Object stored)
Convert from storage format to the read/write format.
|
boolean |
isStorageFormatFilterable() |
protected byte[] |
marshall(Object source) |
Object |
toStorage(Object content)
Convert data in the read/write format to the storage format.
|
protected Object |
unmarshall(byte[] source) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetStorageFormat, idpublic MarshallerEncoder(Marshaller marshaller)
public Object toStorage(Object content)
Encoderpublic Object fromStorage(Object stored)
EncoderfromStorage in interface Encoderstored - data as stored in the cache, never null.public boolean isStorageFormatFilterable()
isStorageFormatFilterable in interface Encoderprotected Object unmarshall(byte[] source) throws IOException, ClassNotFoundException
IOExceptionClassNotFoundExceptionprotected byte[] marshall(Object source) throws IOException, InterruptedException
IOExceptionInterruptedExceptionCopyright © 2022 JBoss by Red Hat. All rights reserved.