Interface IMergeSettingsSerializerService
- All Known Implementing Classes:
HierarchicalMergeSettingsSerializerService
public interface IMergeSettingsSerializerService
Service to save / restore merge settings.
-
Method Summary
Modifier and TypeMethodDescriptiondeserialize(InputStream inputStream) Creates a new merge settings model from file.voidserialize(IComparisonSession comparisonSession, OutputStream outputStream) Serializes user-defined merge settings and correspondences from a comparison session to a file.
-
Method Details
-
serialize
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 benulloutputStream- 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.
-