Class StashObjectsSerialiser
- java.lang.Object
-
- com.atlassian.confluence.impl.backuprestore.restore.stash.StashObjectsSerialiser
-
public class StashObjectsSerialiser extends Object
Serialises and deserialises instances of ImportedObjectV2 to the byte arrays.- Since:
- 8.1.0
-
-
Constructor Summary
Constructors Constructor Description StashObjectsSerialiser()
StashObjectsSerialiser(HibernateMetadataHelper hibernateMetadataHelper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImportedObjectV2
deserialise(byte[] byteArray)
Deserialises object from a byte array.byte[]
serialise(ImportedObjectV2 objectV2)
Serialises object to a byte array.
-
-
-
Constructor Detail
-
StashObjectsSerialiser
public StashObjectsSerialiser()
-
StashObjectsSerialiser
public StashObjectsSerialiser(HibernateMetadataHelper hibernateMetadataHelper)
-
-
Method Detail
-
serialise
public byte[] serialise(ImportedObjectV2 objectV2) throws IOException
Serialises object to a byte array.- Throws:
IOException
-
deserialise
public ImportedObjectV2 deserialise(byte[] byteArray) throws IOException, ClassNotFoundException
Deserialises object from a byte array.- Throws:
IOException
ClassNotFoundException
-
-