Package uk.gov.nationalarchives.droid.container

Examples of uk.gov.nationalarchives.droid.container.ContainerSignatureMatchCollection


        try {
            request.open(in);
           
            int maxBytesToScan = -1;
            ContainerSignatureMatchCollection matches =
                new ContainerSignatureMatchCollection(getContainerIdentifierInit().getContainerSignatures(),
                    getContainerIdentifierInit().getUniqueFileEntries(), maxBytesToScan);
       
            getIdentifierEngine().process(request, matches);
       
            final Map<String, String> puidMap = new HashMap<String, String>();     
            for (ContainerSignatureMatch match : matches.getContainerSignatureMatches()) {
                if (match.isMatch()) {
                    List<FileFormatMapping> mappings = getFormats().get(match.getSignature().getId());
                    for (FileFormatMapping mapping : mappings) {
                        IdentificationResultImpl result = new IdentificationResultImpl();
                        result.setMethod(IdentificationMethod.CONTAINER);
View Full Code Here

TOP

Related Classes of uk.gov.nationalarchives.droid.container.ContainerSignatureMatchCollection

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.