Package com.volantis.mcs.migrate.impl.framework.recogniser

Examples of com.volantis.mcs.migrate.impl.framework.recogniser.RegexpContentRecogniser


    protected boolean recognise(String data, String re) {

        // Create the recogniser and run it against the input data.
        ByteArrayInputStream bais = new ByteArrayInputStream(data.getBytes());

        RegexpContentRecogniser recogniser = new RegexpContentRecogniser(re);

        boolean match = recogniser.recogniseContent(bais);
        return match;
    }
View Full Code Here


        DefaultTypeIdentifier type = new DefaultTypeIdentifier(typeFactory,
                "type");
        type.setPathRecogniser(new RegexpPathRecogniser(filename));
        type.addContentIdentifier(
                new DefaultContentIdentifier(version1,
                        new RegexpContentRecogniser(inputData)));
        DefaultGraph graph = new DefaultGraph(version2);
        Step step = new DefaultStep(version1, version2,
                new TestStreamMigrator(inputData, outputData));
        graph.addStep(step);
        type.setGraph(graph);
View Full Code Here

TOP

Related Classes of com.volantis.mcs.migrate.impl.framework.recogniser.RegexpContentRecogniser

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.