예제 #1
0
        private const int FourKilobytes = 1024 * 4; // 4K

        static FileFormat()
        {
            Scanners = new FileFormatScanners();

            // Others
            Scanners.Register(new PortableExecutableFormatScanner());

            ImageFormatScanners.Register();
            ArchiveFormatScanners.Register();
            MicrosoftFormatScanners.Register();     // Microsoft (Office et al)
            OpenDocumentFormatScanners.Register();  // Open Document Formats
            UnifiedOfficeFormatScanners.Register(); // Unified Office Formats
            ContainerFormatScanners.Register();
            MediaFormatScanners.Register();
            ExecutableFormatScanners.Register();
            EBookFormatScanners.Register();
            OtherFormatScanners.Register();
        }
예제 #2
0
        private const int SixteenKilobytes = FourKilobytes * 4; // 16K

        static FileFormat()
        {
            Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);

            Scanners = new FileFormatScanners();

            // Others
            Scanners.Register(new PortableExecutableFormatScanner());

            ImageFormatScanners.Register();
            ArchiveFormatScanners.Register();
            MicrosoftFormatScanners.Register();     // Microsoft (Office et al)
            OpenDocumentFormatScanners.Register();  // Open Document Formats
            UnifiedOfficeFormatScanners.Register(); // Unified Office Formats
            ContainerFormatScanners.Register();
            MediaFormatScanners.Register();
            ExecutableFormatScanners.Register();
            EBookFormatScanners.Register();
            OtherFormatScanners.Register();
        }