Package com.volantis.mcs.migrate.api.framework

Examples of com.volantis.mcs.migrate.api.framework.ResourceMigrator


                    "content re 2");

            builder.endType();
        }

        ResourceMigrator resourceMigrator =
                builder.getCompletedResourceMigrator();

        assertSame("", mockResourceMigrator, resourceMigrator);

    }
View Full Code Here


        builder.addRegexpContentRecogniser(version1, inputData);
        builder.addStep(version1, version2,
                new TestStreamMigrator(inputData, outputData));
        builder.endType();

        ResourceMigrator resourceMigrator = builder.getCompletedResourceMigrator();

        ByteArrayInputStream bais = new ByteArrayInputStream(
                inputData.getBytes());
        final ByteArrayOutputStream baos = new ByteArrayOutputStream();
        DefaultInputMetadata meta = new DefaultInputMetadata(filename, true);
        resourceMigrator.migrate(meta, bais, new OutputCreator() {
            public OutputStream createOutputStream() {
                return baos;
            }
        });
        assertEquals("", outputData, new String(baos.toByteArray()));
View Full Code Here

        NotificationReporter notifier =
                notificationFactory.createLogDispatcherReporter(logger);

        ByteArrayOutputCreator outputCreator = new ByteArrayOutputCreator();
        ResourceMigrator migrator = configFactory.createDefaultResourceMigrator(
                notifier, true);
        InputMetadata meta = frameworkFactory.createInputMetadata(url, false);
        migrator.migrate(meta, stream, outputCreator);
        return outputCreator.getOutputStream().toString();
    }
View Full Code Here

         */
        // Rest of javadoc inherited
        public ResourceMigrator createDefaultResourceMigrator(
                NotificationReporter reporter, boolean strictMode)
                throws ResourceMigrationException {
            return new ResourceMigrator() {

                public void migrate(InputMetadata meta,
                                    InputStream inputStream,
                                    OutputCreator outputCreator)
                        throws IOException, ResourceMigrationException {
View Full Code Here

TOP

Related Classes of com.volantis.mcs.migrate.api.framework.ResourceMigrator

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.