Package uk.gov.nationalarchives.droid.core.interfaces

Examples of uk.gov.nationalarchives.droid.core.interfaces.IdentificationRequest.open()


       
        IdentificationRequest request = requestFactory.newRequest(metaData, identifier);
        try {
            FileInputStream in = new FileInputStream(file);
            try {
                request.open(in);
                //log.debug(String.format(
                //        "Submitting job [%s]; parent id [%s] to droid.", uri,
                //        parentId));
            } finally {
                if (in != null) {
View Full Code Here


        final InputStream in, final IdentificationResultCollection containerResults) throws IOException {
       
        final IdentificationRequest request = new ContainerFileIdentificationRequest(null);

        try {
            request.open(in);
           
            int maxBytesToScan = -1;
            ContainerSignatureMatchCollection matches =
                new ContainerSignatureMatchCollection(getContainerIdentifierInit().getContainerSignatures(),
                    getContainerIdentifierInit().getUniqueFileEntries(), maxBytesToScan);
View Full Code Here

           
            InputStream in = null;
            IdentificationRequest request = new FileSystemIdentificationRequest(metaData, identifier);
            try {
                in = new FileInputStream(file);
                request.open(in);
                IdentificationResultCollection results =
                    binarySignatureIdentifier.matchBinarySignatures(request);
               
                resultPrinter.print(results, request);
            } catch (FileNotFoundException fnfe) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.