/*
* Copyright (c) 2018 ETH Zürich, Educational Development and Technology (LET)
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
using System.IO;
namespace SafeExamBrowser.Contracts.Configuration
{
///
/// Provides functionality to parse configuration data with a particular format.
///
public interface IDataFormat
{
///
/// Indicates whether the given data complies with the required format.
///
bool CanParse(Stream data);
///
/// Tries to parse the given data, using the optional password. As long as the result is not ,
/// the referenced settings can be in an undefinable state!
///
LoadStatus TryParse(Stream data, Settings.Settings settings, string password = null, bool passwordIsHash = false);
}
}