Examples of copyTo()


Examples of com.avaje.ebeaninternal.server.deploy.meta.DeployTableJoin.copyTo()

    DeployTableJoin tableJoin = prop.getTableJoin();
    if (!tableJoin.hasJoinColumns()) {
      // define Join as the inverse of the mappedBy property
      DeployTableJoin otherTableJoin = mappedAssocOne.getTableJoin();
      otherTableJoin.copyTo(tableJoin, true, tableJoin.getTable());
    }

  }

  /**
 
View Full Code Here

Examples of com.bradmcevoy.http.CopyableResource.copyTo()

        if( src instanceof CopyableResource ) {
            CopyableResource cr = (CopyableResource) src;
            if( dest instanceof CollectionResource ) {
                CollectionResource destFolder = (CollectionResource) dest;
                try {
                    cr.copyTo( destFolder, name );
                } catch( NotAuthorizedException e ) {
                    return result( "not authorised" );
                } catch( BadRequestException e ) {
                    return result( "bad request" );
                } catch( ConflictException ex ) {
View Full Code Here

Examples of com.carrotsearch.ant.tasks.junit4.events.AppendStdErrEvent.copyTo()

    IEvent deserialize = deserializer.deserialize();
   
    Assert.assertTrue(deserialize instanceof AppendStdErrEvent);
    AppendStdErrEvent e = ((AppendStdErrEvent) deserialize);
    baos.reset();
    e.copyTo(baos);
    Assert.assertTrue(
        "Exp: " + Arrays.toString(bytes) + "\n" +
        "was: " + Arrays.toString(baos.toByteArray()),
        Arrays.equals(bytes, baos.toByteArray()));
  }
View Full Code Here

Examples of com.carrotsearch.ant.tasks.junit4.events.IStreamEvent.copyTo()

      IStreamEvent evt;
      switch (type) {
        case APPEND_STDERR:
        case APPEND_STDOUT:
          evt = (IStreamEvent) gson.fromJson(reader, type.eventClass);
          evt.copyTo(System.out);
          break;
        default:
          System.out.println("\n\n## " + type);
          reader.skipValue();
      }
View Full Code Here

Examples of com.cloudloop.storage.CloudStoreDirectory.copyTo()

        {
        err.println( "Cannot copy a directory to a file." );
        return 1;
        }
        CloudStoreDirectory fromDir = (CloudStoreDirectory) fromObj;
        fromDir.copyTo( (CloudStoreDirectory) toObj, progressPrinter );
    }
    else
    {
        if ( toObj.getStoreObjectType( ) == CloudStoreObjectType.DIRECTORY )
        {
View Full Code Here

Examples of com.cloudloop.storage.CloudStoreFile.copyTo()

      Thread.sleep( 1000 );
  }
  catch ( Throwable e )
  {
  }
  fileToUpload.copyTo( store
    .getFile( dirPath.getParent( )
    .combine(
        PathUtil.popLeaf( fileToUpload.getPath( ) ) )
    .getAbsolutePath( ) ), null );
  assertTrue( store.contains( store.getFile( "/foo/some_file.txt" ) ) );
View Full Code Here

Examples of com.comphenix.protocol.reflect.ObjectWriter.copyTo()

      protected void onReplacing(Object inserting, Object replacement) {
        // Is this a normal Minecraft object?
        if (!(inserting instanceof Factory)) {
          // If so, copy the content of the old element to the new
          try {
            writer.copyTo(inserting, replacement, inserting.getClass());
          } catch (OutOfMemoryError e) {
            throw e;
          } catch (ThreadDeath e) {
            throw e;
          } catch (Throwable e) {
View Full Code Here

Examples of com.ettrema.httpclient.File.copyTo()

      final HttpServletRequest req=ServletTestRunner.localRequest.get();
        Host hh=new Host(req.getServerName(),"/webdav/autopub",req.getServerPort(),"admin@dotcms.com","admin",null,null);
       
        Folder demo=(Folder)hh.child("demo.dotcms.com");
        File f1=(File)demo.child(filename);
        f1.copyTo(demo, copyfilename);
        Thread.sleep(1000);
        File f2=(File)demo.child(copyfilename);
        ByteArrayOutputStream out1=new ByteArrayOutputStream(),out2=new ByteArrayOutputStream();
        f1.download(out1, null);
        f2.download(out2, null);
View Full Code Here

Examples of com.foundationdb.qp.row.HKey.copyTo()

        }

        private void computeBranchLookupRowHKey(Row row)
        {
            HKey ancestorHKey = row.hKey(); // row.ancestorHKey(commonAncestor);
            ancestorHKey.copyTo(lookupRowHKey);
            if (branchRootOrdinal != -1) {
                lookupRowHKey.extendWithOrdinal(branchRootOrdinal);
            }
        }
View Full Code Here

Examples of com.google.common.io.ByteSource.copyTo()

            if (!conf.exists()) {
                String resource = stagingDatabase ? "je.properties.staging"
                        : "je.properties.objectdb";
                ByteSource from = Resources.asByteSource((getClass().getResource(resource)));
                try {
                    from.copyTo(Files.asByteSink(conf));
                } catch (IOException e) {
                    Throwables.propagate(e);
                }
            }
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.