Interface IMergeSettingsSerializerService
-
public interface IMergeSettingsSerializerService
Service to save / restore merge settings.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RestoredMergeSettings
deserialize(InputStream inputStream)
Creates a new merge settings model from file.void
serialize(IComparisonSession comparisonSession, OutputStream outputStream)
Serializes user-defined merge settings and correspondences from a comparison session to a file.
-
-
-
Method Detail
-
serialize
void serialize(IComparisonSession comparisonSession, OutputStream outputStream) throws IOException
Serializes user-defined merge settings and correspondences from a comparison session to a file. Input nodes of the comparison tree must be part of the fully created comparison tree from the input session.- Parameters:
comparisonSession
- the comparison session whose settings are saved, cannot benull
outputStream
- the output stream to serialize the merge settings to, cannot benull
- Throws:
IOException
- file serialization error.
-
deserialize
RestoredMergeSettings deserialize(InputStream inputStream) throws FileNotFoundException, InvalidPropertiesFormatException, InvalidPreferencesFormatException
Creates a new merge settings model from file.- Parameters:
inputStream
- input stream to read the merge settings, notnull
.- Returns:
- New instance of settings model recovered from the file, cannot
null
. - Throws:
FileNotFoundException
- the input file was not found.InvalidPropertiesFormatException
- the input file has an incorrect format.InvalidPreferencesFormatException
- unsupported version of input file serialization format.
-
-