Examples of copyTo()


Examples of org.freeplane.features.nodestyle.NodeStyleModel.copyTo()

    }

    public void copy(final NodeModel from, final NodeModel to) {
      final NodeStyleModel fromStyle = from.getExtension(NodeStyleModel.class);
      if (fromStyle != null) {
        fromStyle.copyTo(NodeStyleModel.createNodeStyleModel(to));
      }
      final NodeSizeModel fromSize = from.getExtension(NodeSizeModel.class);
      if (fromSize != null) {
        fromSize.copyTo(NodeSizeModel.createNodeSizeModel(to));
      }
View Full Code Here

Examples of org.geoserver.config.hibernate.beans.GeoServerInfoImplHb.copyTo()

            if (LOGGER.isLoggable(Level.INFO))
                LOGGER.info("Storing first instance of GeoServerInfo");

            GeoServerInfoImplHb inserted = (GeoServerInfoImplHb) this.serviceDAO
                    .save(configuration);
            inserted.copyTo((GeoServerInfoImplHb) configuration);
            ((GeoServerInfoImplHb) configuration).setId(inserted.getId());
        } else {

            GeoServerInfoImplHb oldconf = (GeoServerInfoImplHb) currentGlobal;
            GeoServerInfoImplHb newconf = (GeoServerInfoImplHb) configuration;
View Full Code Here

Examples of org.gradle.api.file.FileCopyDetails.copyTo()

        }});

        mappedDetails.filter(HelperUtil.toClosure("{ 'PREFIX: ' + it } "));

        ByteArrayOutputStream outstr = new ByteArrayOutputStream();
        mappedDetails.copyTo(outstr);
        assertThat(new String(outstr.toByteArray()), equalTo("PREFIX: content"));
    }

    @Test
    public void copyActionCanFilterContentWhenFileIsCopiedToFile() {
View Full Code Here

Examples of org.gradle.test.fixtures.file.TestFile.copyTo()

            @Override
            public void evaluate() throws Throwable {
                if (sampleName != null) {
                    TestFile srcDir = new IntegrationTestBuildContext().getSamplesDir().file(sampleName).assertIsDir();
                    logger.debug("Copying sample '{}' to test directory.", sampleName);
                    srcDir.copyTo(sampleDir);
                } else {
                    logger.debug("No sample specified for this test, skipping.");
                }
                base.evaluate();
            }
View Full Code Here

Examples of org.gradle.util.TestFile.copyTo()

     */
    public void maybeCopy(String resource) {
        TestFile dir = resources.findResource(resource);
        if (dir != null) {
            logger.debug("Copying test resource '{}' from {} to test directory.", resource, dir);
            dir.copyTo(getDir());
        } else {
            logger.debug("Test resource '{}' not found, skipping.", resource);
        }
    }
}
View Full Code Here

Examples of org.jitterbit.util.file.Folder.copyTo()

        Folder txCache = cacheFolder.subFolder("TransformationStructures");
        Folder wsCache = cacheFolder.subFolder("WebServiceCallStructures");
        destination.createOnDisk();
        ChunkedFolderCopier txCacheCopier = new ChunkedFolderCopier(txCache, destination.subFolder(txCache.getName()));
        txCacheCopier.copy();
        wsCache.copyTo(destination.subFolder(wsCache.getName()));
    }

    private void deleteFolder() {
        try {
            // Calling just org.apache.commons.io.FileUtils.deleteDirectory() doesn't always work -
View Full Code Here

Examples of org.jnode.driver.textscreen.TextScreen.copyTo()

        TextScreen oldScreen = screen;
        screen = systemScreen;

        final int size = oldScreen.getWidth() * oldScreen.getHeight();
        ensureVisible(oldScreen, 0);
        oldScreen.copyTo(screen, 0, size);
        syncScreen(0, size);
    }

    private final void ensureVisible(TextScreen scr, int row) {
        if (scr instanceof ScrollableTextScreen) {
View Full Code Here

Examples of org.nustaq.offheap.bytez.Bytez.copyTo()

                    }
                    for (int j = 0; j < objArr.length; j++) {
                        Object objectValue = objArr[j];
                        if ( templatearr != null ) {
//                            unsafe.copyMemory(templatearr,FSTStruct.bufoff,bytes,FSTStruct.bufoff+tmpIndex,templatearr.length);
                            templatearr.copyTo(bytes,tmpIndex,0,templatearr.length());
                            tmpIndex+=elemSiz;
                        } else {
                            if ( objectValue == null ) {
                                bytes.putInt(tmpIndex + 4, -1);
                                tmpIndex += elemSiz;
View Full Code Here

Examples of org.openquark.cal.metadata.CALFeatureMetadata.copyTo()

       
        if (metadata == null) {
            return false;
        }
       
        newMetadata.copyTo(metadata);
       
        return true;
    }

    /**
 
View Full Code Here

Examples of org.platformlayer.ops.cas.filesystem.FilesystemCasObject.copyTo()

    if (stagingStore != null) {
      log.info("Staging object " + this + " to " + stagingStore);

      FilesystemCasObject staged = ((FilesystemCasStore) stagingStore).copyToStaging(this);

      staged.copyTo(destTarget, destPath, null);
    } else {
      log.info("Copying object from " + this + " to " + destTarget);

      this.copyTo0(OpsCasTarget.getTarget(destTarget), destPath);
    }
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.