// /*************************************************************************** // Aaru Data Preservation Suite // ---------------------------------------------------------------------------- // // Filename : ArchiveInfo.cs // Author(s) : Natalia Portillo // // Component : Core algorithms. // // --[ Description ] ---------------------------------------------------------- // // Prints image information to console. // // --[ License ] -------------------------------------------------------------- // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General public License as // published by the Free Software Foundation, either version 3 of the // License, or (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General public License for more details. // // You should have received a copy of the GNU General public License // along with this program. If not, see . // // ---------------------------------------------------------------------------- // Copyright © 2011-2025 Natalia Portillo // ****************************************************************************/ using System.Text; using Aaru.CommonTypes.Interfaces; using Aaru.Logging; namespace Aaru.Core; /// Image information operations public static class ArchiveInfo { /// Prints archive information to console /// Archive public static void PrintArchiveInfo(IArchive imageFormat, IFilter filter, Encoding encoding) { AaruLogging.WriteLine(Localization.Core.Archive_Information_With_Markup); imageFormat.GetInformation(filter, encoding, out string information); AaruLogging.WriteLine(information); AaruLogging.WriteLine(); } }