![JAR search and dependency download from the Maven repository](/logo.png)
io.axway.iron.spi.serializer.SnapshotSerializer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of iron-spi Show documentation
Show all versions of iron-spi Show documentation
Iron Service Provider Interfaces
package io.axway.iron.spi.serializer;
import java.io.*;
import io.axway.iron.spi.model.snapshot.SerializableSnapshot;
/**
* Snapshot serialization interface.
* It reads/writes model entities instances data.
*/
public interface SnapshotSerializer {
/**
* Serialize a snapshot.
*
* @param out the stream where the serialized snapshot must be written
* @param serializableSnapshot the snapshot to be serialized
* @throws IOException in case of errors when writing on the {@code out} stream
*/
void serializeSnapshot(OutputStream out, SerializableSnapshot serializableSnapshot) throws IOException;
/**
* Deserialize a snapshot.
*
* @param in the snapshot is to be read from this stream
* @return the deserialized snapshot
* @throws IOException in case of errors when writing on the {@code in} stream
*/
SerializableSnapshot deserializeSnapshot(InputStream in) throws IOException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy