Class MarshallerEncoder
- java.lang.Object
-
- org.infinispan.commons.dataconversion.MarshallerEncoder
-
- All Implemented Interfaces:
Encoder
- Direct Known Subclasses:
GlobalMarshallerEncoder,JavaSerializationEncoder
@Deprecated public abstract class MarshallerEncoder extends Object implements Encoder
Deprecated.Since 12.1, to be removed in a future version.Encoder that uses aStreamingMarshallerto convert objects to byte[] and back.- Since:
- 9.1
-
-
Constructor Summary
Constructors Constructor Description MarshallerEncoder(Marshaller marshaller)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ObjectfromStorage(Object stored)Deprecated.Convert from storage format to the read/write format.booleanisStorageFormatFilterable()Deprecated.protected byte[]marshall(Object source)Deprecated.ObjecttoStorage(Object content)Deprecated.Convert data in the read/write format to the storage format.protected Objectunmarshall(byte[] source)Deprecated.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.infinispan.commons.dataconversion.Encoder
getStorageFormat, id
-
-
-
-
Constructor Detail
-
MarshallerEncoder
public MarshallerEncoder(Marshaller marshaller)
Deprecated.
-
-
Method Detail
-
toStorage
public Object toStorage(Object content)
Deprecated.Description copied from interface:EncoderConvert data in the read/write format to the storage format.
-
fromStorage
public Object fromStorage(Object stored)
Deprecated.Description copied from interface:EncoderConvert from storage format to the read/write format.- Specified by:
fromStoragein interfaceEncoder- Parameters:
stored- data as stored in the cache, never null.- Returns:
- data in the read/write format
-
isStorageFormatFilterable
public boolean isStorageFormatFilterable()
Deprecated.- Specified by:
isStorageFormatFilterablein interfaceEncoder- Returns:
- if true, will perform stream and related operation in the storage format.
-
unmarshall
protected Object unmarshall(byte[] source) throws IOException, ClassNotFoundException
Deprecated.- Throws:
IOExceptionClassNotFoundException
-
marshall
protected byte[] marshall(Object source) throws IOException, InterruptedException
Deprecated.- Throws:
IOExceptionInterruptedException
-
-