Package uk.gov.nationalarchives.droid.container.ole2

Examples of uk.gov.nationalarchives.droid.container.ole2.Ole2RootFileTest


   
    @Before
    public void setUp() {
        ole2ContainerContentIdentifier = new Ole2ContainerContentIdentifier();
        requestFactory = new ContainerFileIdentificationRequestFactory();
        ole2IdentifierEngine = new Ole2IdentifierEngine();
        containerIdentifierInit = new ContainerIdentifierInit();
        formats = new HashMap<Integer, List<FileFormatMapping>>();
    }
View Full Code Here


                        if (OLE2_CONTAINER.equals(containerType)) {
                            try {
                                Ole2ContainerContentIdentifier ole2Identifier =
                                        new Ole2ContainerContentIdentifier();
                                ole2Identifier.init(containerSignatureDefinitions, containerType);
                                Ole2IdentifierEngine ole2IdentifierEngine = new Ole2IdentifierEngine();
                                ole2IdentifierEngine.setRequestFactory(requestFactory);
                                ole2Identifier.setIdentifierEngine(ole2IdentifierEngine);
                                containerResults = ole2Identifier.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.ole2.Ole2RootFileTest

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.