Package org.apache.oodt.cas.filemgr.metadata.extractors

Examples of org.apache.oodt.cas.filemgr.metadata.extractors.FilemgrMetExtractor


        if (product.getProductType().getExtractors() != null
                && product.getProductType().getExtractors().size() > 0) {
            for (Iterator<ExtractorSpec> i = product.getProductType().getExtractors()
                    .iterator(); i.hasNext();) {
                ExtractorSpec spec = i.next();
                FilemgrMetExtractor extractor = GenericFileManagerObjectFactory
                        .getExtractorFromClassName(spec.getClassName());
                extractor.configure(spec.getConfiguration());
                LOG.log(Level.INFO, "Running Met Extractor: ["
                        + extractor.getClass().getName()
                        + "] for product type: ["
                        + product.getProductType().getName() + "]");
                try {
                    met = extractor.extractMetadata(product, met);
                } catch (MetExtractionException e) {
                    e.printStackTrace();
                    LOG.log(Level.WARNING,
                            "Exception extractor metadata from product: ["
                                    + product.getProductName()
                                    + "]: using extractor: ["
                                    + extractor.getClass().getName()
                                    + "]: Message: " + e.getMessage());
                }
            }
        }
View Full Code Here


        assertNotNull(versioner);

    }

    public void testGetExtractorFromClassName() {
        FilemgrMetExtractor extractor = GenericFileManagerObjectFactory
                .getExtractorFromClassName(extractorClass);
        assertNotNull(extractor);

    }
View Full Code Here

        Metadata met = new Metadata();
        met.addMetadata(metadata.getHashtable());

        if (product.getProductType().getExtractors() != null) {
            for (ExtractorSpec spec: product.getProductType().getExtractors()) {
                FilemgrMetExtractor extractor = GenericFileManagerObjectFactory
                        .getExtractorFromClassName(spec.getClassName());
                extractor.configure(spec.getConfiguration());
                LOG.log(Level.INFO, "Running Met Extractor: ["
                        + extractor.getClass().getName()
                        + "] for product type: ["
                        + product.getProductType().getName() + "]");
                try {
                    met = extractor.extractMetadata(product, met);
                } catch (MetExtractionException e) {
                    LOG.log(Level.SEVERE,
                            "Exception extractor metadata from product: ["
                                    + product.getProductName()
                                    + "]: using extractor: ["
                                    + extractor.getClass().getName()
                                    + "]: Message: " + e.getMessage(), e);
                }
            }
        }
View Full Code Here

        assertNotNull(versioner);

    }

    public void testGetExtractorFromClassName() {
        FilemgrMetExtractor extractor = GenericFileManagerObjectFactory
                .getExtractorFromClassName(extractorClass);
        assertNotNull(extractor);

    }
View Full Code Here

        if (product.getProductType().getExtractors() != null
                && product.getProductType().getExtractors().size() > 0) {
            for (Iterator<ExtractorSpec> i = product.getProductType().getExtractors()
                    .iterator(); i.hasNext();) {
                ExtractorSpec spec = i.next();
                FilemgrMetExtractor extractor = GenericFileManagerObjectFactory
                        .getExtractorFromClassName(spec.getClassName());
                extractor.configure(spec.getConfiguration());
                LOG.log(Level.INFO, "Running Met Extractor: ["
                        + extractor.getClass().getName()
                        + "] for product type: ["
                        + product.getProductType().getName() + "]");
                try {
                    met = extractor.extractMetadata(product, met);
                } catch (MetExtractionException e) {
                    e.printStackTrace();
                    LOG.log(Level.WARNING,
                            "Exception extractor metadata from product: ["
                                    + product.getProductName()
                                    + "]: using extractor: ["
                                    + extractor.getClass().getName()
                                    + "]: Message: " + e.getMessage());
                }
            }
        }
View Full Code Here

        if (product.getProductType().getExtractors() != null
                && product.getProductType().getExtractors().size() > 0) {
            for (Iterator<ExtractorSpec> i = product.getProductType().getExtractors()
                    .iterator(); i.hasNext();) {
                ExtractorSpec spec = i.next();
                FilemgrMetExtractor extractor = GenericFileManagerObjectFactory
                        .getExtractorFromClassName(spec.getClassName());
                extractor.configure(spec.getConfiguration());
                LOG.log(Level.INFO, "Running Met Extractor: ["
                        + extractor.getClass().getName()
                        + "] for product type: ["
                        + product.getProductType().getName() + "]");
                try {
                    met = extractor.extractMetadata(product, met);
                } catch (MetExtractionException e) {
                    e.printStackTrace();
                    LOG.log(Level.WARNING,
                            "Exception extractor metadata from product: ["
                                    + product.getProductName()
                                    + "]: using extractor: ["
                                    + extractor.getClass().getName()
                                    + "]: Message: " + e.getMessage());
                }
            }
        }
View Full Code Here

TOP

Related Classes of org.apache.oodt.cas.filemgr.metadata.extractors.FilemgrMetExtractor

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.