Examples of createDocument()


Examples of er.pdf.builder.PDFBuilder.createDocument()

    NSMutableDictionary<String, Object> _config = config == null ? new NSMutableDictionary<String, Object>() : config.mutableClone();
    PDFBuilder builder = PDFBuilderFactory.newBuilder((String) _config.removeObjectForKey("engine"));
    ByteArrayOutputStream os = new ByteArrayOutputStream();
    try {
      builder.setSource(html, encoding, urlPrefix, _config);
      builder.createDocument(os);
      os.close();
      return new NSData(os.toByteArray());
    } catch (Exception e) {
      throw com.webobjects.foundation.NSForwardException._runtimeExceptionForThrowable(e);
    }
View Full Code Here

Examples of hu.jokeman.xparser.impl.document.DocumentBuilderImpl.createDocument()

       
        try {
            fis = new FileInputStream (args [0]);
            fos = new FileOutputStream (args [0] + ".html");
            DocumentBuilderImpl builder = new DocumentBuilderImpl ();
            builder.createDocument ();

            // input file feldologz�sa
            XMLProcessor processor = new XMLProcessor (builder);
            processor.process (fis);
View Full Code Here

Examples of jmt.gui.exact.ExactModel.createDocument()

    if (PRINTMODEL) {
      System.out.println(model);
    }

    try {
      if (!xmlUtils.saveXML(model.createDocument(), file)) {
        fail("Error saving solved model to tempfile", null);
      }
    } catch (SAXException e) {
      fail("XML parse error in tempfile", e);
    } catch (Exception e) {
View Full Code Here

Examples of lotus.domino.Database.createDocument()

          if(db==null) {
            // Should use the log application
            throw new MimeEmailException("Unbale to find an NSF to send the email message");
          }
      lotus.domino.Session session = db.getParent();
      Document doc = db.createDocument();

      doc.appendItemValue("Form", "Memo"); //$NON-NLS-1$

      doc.appendItemValue("Subject", getSubject()); //$NON-NLS-1$
      doc.appendItemValue("SendTo", getCommaSeparatedTo()); //$NON-NLS-1$
View Full Code Here

Examples of net.sf.saxon.tinytree.TinyBuilder.createDocument()

            } else {
                // no result node supplied; we must create our own
                TinyBuilder builder = new TinyBuilder();
                builder.setSystemId(result.getSystemId());
                builder.setConfiguration(config);
                builder.createDocument();
                Document resultDoc = (Document)builder.getCurrentDocument();
                ((DOMResult)result).setNode(resultDoc);
                return builder;
            }
        } else {
View Full Code Here

Examples of org.apache.batik.dom.svg.SAXSVGDocumentFactory.createDocument()

   public static SVGOMDocument createDocument (Reader reader, String dummyURI)
      throws IOException
   {
      SAXSVGDocumentFactory factory = new SAXSVGDocumentFactory(PARSER_CLASSNAME);
      return (org.apache.batik.dom.svg.SVGOMDocument)factory.createDocument(dummyURI, reader);
   }


   public static SVGOMDocument createDocument (InputStream inputStream, String dummyURI)
      throws IOException
View Full Code Here

Examples of org.apache.batik.dom.svg.SAXSVGDocumentFactory.createDocument()

   public static SVGOMDocument createDocument (InputStream inputStream, String dummyURI)
      throws IOException
   {
      SAXSVGDocumentFactory factory = new SAXSVGDocumentFactory(PARSER_CLASSNAME);
      return (org.apache.batik.dom.svg.SVGOMDocument)factory.createDocument(dummyURI, inputStream);
   }


   public static SVGOMDocument createDocument (String xmlString, String dummyURI) throws IOException
   {
View Full Code Here

Examples of org.apache.batik.dom.svg.SAXSVGDocumentFactory.createDocument()

                (XMLResourceDescriptor.getXMLParserClassName());
            String uri = ((SVGOMDocument)bridgeContext.getDocument()).
                getURLObject().toString();
            DocumentFragment result = null;
            try {
                Document d = df.createDocument(uri, new StringReader(text));
                result = doc.createDocumentFragment();
                result.appendChild(doc.importNode(d.getDocumentElement(),
                                                  true));
            } catch (Exception ex) {
                StringBuffer sb = new StringBuffer(text.length() +
View Full Code Here

Examples of org.apache.batik.dom.svg.SAXSVGDocumentFactory.createDocument()

                sb.append(FRAGMENT_PREFIX);
                sb.append(text);
                sb.append("</svg>");
                String newText = sb.toString();
                try {
                    Document d = df.createDocument
                        (uri, new StringReader(newText));
                    for (Node n = d.getDocumentElement().getFirstChild();
                         n != null;
                         n = n.getNextSibling()) {
                        if (n.getNodeType() == n.ELEMENT_NODE) {
View Full Code Here

Examples of org.apache.batik.dom.svg.SAXSVGDocumentFactory.createDocument()

        SAXSVGDocumentFactory f = new SAXSVGDocumentFactory(parserClassName);
        f.setValidating(validate.booleanValue());
        Document doc = null;

        try {
            doc = f.createDocument(svgURL);
        } catch(Exception e){
            return handleException(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.