Examples of copyTo()


Examples of org.eclipse.jgit.lib.ObjectLoader.copyTo()

    otp.setOffset(out.length());
    out.writeHeader(otp, ldr.getSize());

    deflater.reset();
    DeflaterOutputStream dst = new DeflaterOutputStream(out, deflater);
    ldr.copyTo(dst);
    dst.finish();
  }

  private void writeDeltaObjectDeflate(PackOutputStream out,
      final ObjectToPack otp) throws IOException {
View Full Code Here

Examples of org.eclipse.jgit.lib.ObjectLoader.copyTo()

    ObjectLoader ol = repo.open(entry.getObjectId());
    File parentDir = f.getParentFile();
    File tmpFile = File.createTempFile("._" + f.getName(), null, parentDir);
    FileOutputStream channel = new FileOutputStream(tmpFile);
    try {
      ol.copyTo(channel);
    } finally {
      channel.close();
    }
    FS fs = repo.getFS();
    WorkingTreeOptions opt = repo.getConfig().get(WorkingTreeOptions.KEY);
View Full Code Here

Examples of org.eclipse.jst.jsf.core.internal.jsflibraryregistry.ArchiveFile.copyTo()

  public boolean copyTo(String baseDestLocation) {
    boolean allCopied = true;
    Iterator itFiles = getArchiveFiles().iterator();
    while (itFiles.hasNext()) {
      ArchiveFile archiveFile = (ArchiveFile)itFiles.next();
      boolean copied = archiveFile.copyTo(baseDestLocation);
      allCopied = allCopied && copied;
    }
    return allCopied;
  }
View Full Code Here

Examples of org.eclipse.jst.tapestry.core.internal.tapestrylibraryregistry.ArchiveFile.copyTo()

  public boolean copyTo(String baseDestLocation) {
    boolean allCopied = true;
    Iterator itFiles = getArchiveFiles().iterator();
    while (itFiles.hasNext()) {
      ArchiveFile archiveFile = (ArchiveFile)itFiles.next();
      boolean copied = archiveFile.copyTo(baseDestLocation);
      allCopied = allCopied && copied;
    }
    return allCopied;
  }
View Full Code Here

Examples of org.eclipse.persistence.expressions.ListExpressionOperator.copyTo()

     * INTERNAL:
     * Print SQL
     */
    public void printSQL(ExpressionSQLPrinter printer) {
        ListExpressionOperator platformOperator = (ListExpressionOperator)getPlatformOperator(printer.getPlatform());
        platformOperator.copyTo(operator);
        operator.printCollection(getChildren(), printer);
    }
   
    @Override
    protected void postCopyIn(Map alreadyDone) {
View Full Code Here

Examples of org.exist.dom.Match.copyTo()

                for (final SequenceIterator iter = callbackResult.iterate(); iter.hasNext(); ) {
                  final Item next = iter.nextItem();
                  if (Type.subTypeOf(next.getType(), Type.NODE)) {
                    nodeNr = builder.getDocument().getLastNode();
                    try {
              next.copyTo(context.getBroker(), receiver);
              result.add(builder.getDocument().getNode(++nodeNr));
              lastNodeNr = nodeNr;
            } catch (final SAXException e) {
              throw new XPathException(this, "Internal error while copying nodes: " + e.getMessage(), e);
            }
View Full Code Here

Examples of org.exist.memtree.NodeImpl.copyTo()

                try {
                    //we have to use CloseShieldInputStream otherwise the parser closes the stream and we cant later reread
                    final InputStream shieldedInputStream = new CloseShieldInputStream(cfis);
                    responseNode = (NodeImpl)ModuleUtils.streamToXML(context, shieldedInputStream);
                    builder.addAttribute(new QName("type", null, null ), "xml");
                    responseNode.copyTo(null, new DocumentBuilderReceiver(builder));
                } catch(final SAXException se) {
                    // could not parse to xml
                    // not an error in itself, it will be treated either as HTML,
                    // text or binary here below
                    final String msg = "Request for URI '"
View Full Code Here

Examples of org.exist.util.ByteArray.copyTo()

        assertEquals(mode2, permission.getACEMode(1));
       
        //get the written acl data
        ByteArray buf = os.data();
        byte data[] = new byte[buf.size()];
        buf.copyTo(data, 0);
       
       
        //create a new permission instance
        SimpleACLPermission permission2 = new SimpleACLPermission(mockSecurityManager);
       
View Full Code Here

Examples of org.exist.xquery.value.Item.copyTo()

            buf.setLength(0);
          }
                    if (next.getType() == Type.ATTRIBUTE && !allowAttribs)
                        throw new XPathException(this, "XQTY0024: An attribute may not appear after " +
                            "another child node.");
                    next.copyTo(context.getBroker(), receiver);
                    allowAttribs = next.getType() == Type.ATTRIBUTE;
                    next = i.nextItem();
        }
            }
      // flush remaining character data
View Full Code Here

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

      if (fromStyle != null) {
        fromStyle.copyTo(NodeStyleModel.createNodeStyleModel(to));
      }
      final NodeSizeModel fromSize = from.getExtension(NodeSizeModel.class);
      if (fromSize != null) {
        fromSize.copyTo(NodeSizeModel.createNodeSizeModel(to));
      }
     
    }

    public void remove(final Object key, final NodeModel from) {
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.