Examples of Copier


Examples of org.eclipse.emf.ecore.util.EcoreUtil.Copier

    return (DataObject)result;
  }

  public DataObject copy(DataObject dataObject)
  {
    Copier copier = new CrossScopeCopier();
    DataObject result = (DataObject)copier.copy((EObject)dataObject);
    copier.copyReferences();
    return (DataObject)result;
  }
View Full Code Here

Examples of org.jboss.forge.furnace.proxy.javassist.bytecode.AnnotationsAttribute.Copier

    /**
     * Copies this attribute and returns a new copy.
     */
    public AttributeInfo copy(ConstPool newCp, Map classnames) {
        Copier copier = new Copier(info, constPool, newCp, classnames);
        try {
            copier.parameters();
            return new ParameterAnnotationsAttribute(newCp, getName(),
                                                     copier.close());
        }
        catch (Exception e) {
            throw new RuntimeException(e.toString());
        }
    }
View Full Code Here

Examples of org.omnifaces.util.copier.Copier

    return groups;
  }

  private Copier getCopier(FacesContext context, String copierName) {

    Copier copier = null;

    if (!isEmpty(copierName)) {
      Object expressionResult = evaluateExpressionGet(context, copierName);
      if (expressionResult instanceof Copier) {
        copier = (Copier) expressionResult;
View Full Code Here

Examples of slash.navigation.download.actions.Copier

        InputStream inputStream = get.executeAsStream();
        log.info(format("Resume from %s returned with status code %s", download.getUrl(), get.getStatusCode()));
        if (get.isPartialContent()) {
            modelUpdater.expectingBytes(contentLength != null ? contentLength : get.getContentLength() != null ? get.getContentLength() : 0);
            new Copier(modelUpdater).copyAndClose(inputStream, new FileOutputStream(download.getTempFile(), true), fileSize, contentLength);
            return true;
        }
        return false;
    }
View Full Code Here

Examples of slash.navigation.download.actions.Copier

        log.info(format("Download from %s returned with status code %s", download.getUrl(), get.getStatusCode()));
        if (get.isSuccessful() && inputStream != null) {
            if(contentLength == null)
                contentLength = get.getContentLength();
            modelUpdater.expectingBytes(contentLength != null ? contentLength : 0);
            new Copier(modelUpdater).copyAndClose(inputStream, new FileOutputStream(download.getTempFile()), 0, contentLength);
            download.setETag(get.getETag());
            return true;
        }
        return false;
    }
View Full Code Here

Examples of slash.navigation.download.actions.Copier

    }

    private void copy() throws IOException {
        File target = download.getFile().getFile();
        ensureDirectory(target.getParent());
        new Copier(modelUpdater).copyAndClose(download.getTempFile(), target);
        setLastModified(target, fromMillis(get.getLastModified()));
    }
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.