Examples of replace()


Examples of com.lowagie.text.xml.xmp.XmpReader.replace()

        PdfDate date = new PdfDate();
        if (altMetadata != null) {
          PdfStream xmp;
          try {
            XmpReader xmpr = new XmpReader(altMetadata);
            xmpr.replace("http://ns.adobe.com/xap/1.0/", "ModifyDate", date.getW3CDate());
            xmpr.replace("http://ns.adobe.com/xap/1.0/", "MetadataDate", date.getW3CDate());
              xmp = new PdfStream(xmpr.serializeDoc());
          }
          catch(SAXException e) {
            xmp = new PdfStream(altMetadata);
View Full Code Here

Examples of com.nexirius.util.XString.replace()

            return "";
        }

        XString xs = new XString(s);

        xs.replace(File.separator, "/");

        String path = xs.toString();

        if (!path.startsWith("/")) {
            path = "/" + path;
View Full Code Here

Examples of com.ning.http.client.FluentCaseInsensitiveStringsMap.replace()

            contentType = "text/plain";
        }
        String charset = AsyncHttpProviderUtils.parseCharset(contentType);
        if (charset == null) {
            charset = "utf-8";
            headers.replace(HttpHeaders.Names.CONTENT_TYPE, contentType + "; charset=utf-8");
        }

        byte[] bodyBytes;
        try {
            bodyBytes = body.getBytes(charset);
View Full Code Here

Examples of com.projity.pm.dependency.Dependency.replace()

      Dependency dep;
      realTask.invalidateSchedules();
      while (i.hasNext()) {
        dep = (Dependency)i.next();
        dep.fireDeleteEvent(this);
        dep.replace(realTask, true);
        try {
          dep.testValid(false);
        } catch (InvalidAssociationException e) {
          dep.setDisabled(true);
          DependencyService.warnCircularCrossProjectLinkMessage(dep.getPredecessor(), dep.getSuccessor());
View Full Code Here

Examples of com.redspr.redquerybuilder.core.client.BaseSqlWidget.replace()

    @Override
    public BaseSqlWidget remove(Expression e) {
        BaseSqlWidget parent = getParentExpression();
        if (getLeft() == e) {
            parent.replace(this, getRight());
        } else if (getRight() == e) {
            parent.replace(this, getLeft());
        } else {
            throw new IllegalArgumentException();
        }
View Full Code Here

Examples of com.sirenian.hellbound.domain.Segments.replace()

        }
       
        for (int j = y - 1; j >= 0; j--) {
            for (int x = 0; x < width; x++) {
                if (newSegments.contains(new Segment(x, j))) {
                    results = results.replace(new Segment(x, j), new Segment(x, j + 1));
                }
               
            }
        }
        return results;
View Full Code Here

Examples of com.sun.enterprise.admin.util.LineTokenReplacer.replace()

        if (trace)
            printOut("Manifest validated: " + manifestPath);
    }
    private void tokenReplaceTemplateAtDestination(final SMFService smf) throws Exception {
        final LineTokenReplacer tr = new LineTokenReplacer(map2Set(smf.tokensAndValues()));
        tr.replace(smf.getManifestFileTemplatePath(), smf.getManifestFilePath());
        if (trace)
            printOut("Manifest configured: " + smf.getManifestFilePath());
    }
   
    private TokenValueSet map2Set(final Map<String, String> map) throws Exception {
View Full Code Here

Examples of com.tll.util.PropertyPath.replace()

    else {
      assert field instanceof IFieldWidget<?>;
      final IFieldWidget<?> fw = ((IFieldWidget<?>) field);
      final String pname = fw.getPropertyName();
      final PropertyPath p = new PropertyPath(pname);
      p.replace(old, repl);
      fw.setPropertyName(p.toString());
    }
  }

  /**
 
View Full Code Here

Examples of com.trolltech.qt.core.QByteArray.replace()

      js.append("<style type=\"text/css\">en-spell { text-decoration: none; border-bottom: dotted 1px #cc0000; }</style>");
      js.append("</head>");
      formatter.setNote(note, Global.pdfPreview());
      js.append(formatter.rebuildNoteHTML());
      js.append("</HTML>");
      js.replace("<!DOCTYPE en-note SYSTEM 'http://xml.evernote.com/pub/enml.dtd'>", "");
      js.replace("<!DOCTYPE en-note SYSTEM 'http://xml.evernote.com/pub/enml2.dtd'>", "");
      js.replace("<?xml version='1.0' encoding='UTF-8'?>", "");
//          if (Global.enableHTMLEntitiesFix) {
//            browser.getBrowser().setContent(new QByteArray(StringEscapeUtils.unescapeHtml(js.toString())));
//          } else
View Full Code Here

Examples of com.volantis.mcs.dom.Element.replace()

    public static Element insertParentElement(Element element, String elementName) {


        Element newElement = element.getDOMFactory().createElement(elementName);

        newElement.replace(element);
        newElement.addHead(element);

        return newElement;
    }
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.