Skip to content

Latest commit

 

History

History
38 lines (18 loc) · 929 Bytes

README.md

File metadata and controls

38 lines (18 loc) · 929 Bytes

pv-marshaller

Build Status

pvMarshaller is a package that converts between Java Objects and pvData PVStructures

Serialisation is the process of converting a Java Object into a PVStructure

Deserialisation is the process of converting a PVStructure into a Java Object

The package also provides interfaces allowing developers to create their own serialisers and deserialisers to marshall specific classes or structures in a custom way.

Usage:

MyClass myObject = new MyClass();

// ...

// Set members of class

// ...



PVMarshaller marshaller = new PVMarshaller();


// Serialisation

PVStrcture serialisedPVStructure = marshaller.toPVStructure(myObject);


// Deserialisation

MyClass deserialisedObject = marshaller.fromPVStructure(serialisedPVStructure, MyClass.class);