Package uk.gov.nationalarchives.droid.container.zip

Examples of uk.gov.nationalarchives.droid.container.zip.ZipIdentifierEngine


   
    @Before
    public void setUp() {
        zipContainerContentIdentifier = new ZipContainerContentIdentifier();
        requestFactory = new ContainerFileIdentificationRequestFactory();
        zipIdentifierEngine = new ZipIdentifierEngine();
        containerIdentifierInit = new ContainerIdentifierInit();
        formats = new HashMap<Integer, List<FileFormatMapping>>();
    }
View Full Code Here


                        } else if (ZIP_CONTAINER.equals(containerType)) {
                            try {
                                ZipContainerContentIdentifier zipIdentifier =
                                            new ZipContainerContentIdentifier();
                                zipIdentifier.init(containerSignatureDefinitions, containerType);
                                ZipIdentifierEngine zipIdentifierEngine = new ZipIdentifierEngine();
                                zipIdentifierEngine.setRequestFactory(requestFactory);
                                zipIdentifier.setIdentifierEngine(zipIdentifierEngine);
                                containerResults = zipIdentifier.process(
                                    request.getSourceInputStream(), containerResults);
                            } catch (IOException e) {   // carry on after container i/o problems
                                System.err.println(e + SPACE + L_BRACKET + fileName + R_BRACKET);
View Full Code Here

TOP

Related Classes of uk.gov.nationalarchives.droid.container.zip.ZipIdentifierEngine

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.