Examples of output()


Examples of org.apache.axis.message.MessageElement.output()

                Object anyVal = anyDesc.get(value);
                if (anyVal != null && anyVal instanceof MessageElement[]) {
                    MessageElement [] anyContent = (MessageElement[])anyVal;
                    for (int i = 0; i < anyContent.length; i++) {
                        MessageElement element = anyContent[i];
                        element.output(context);
                    }
                }
            }
        } catch (InvocationTargetException ite) {
            Throwable target = ite.getTargetException();
View Full Code Here

Examples of org.apache.axis.message.SOAPBodyElement.output()

            StringWriter writer = new StringWriter();
            client.addOption(AxisEngine.PROP_XML_DECL, new Boolean(false));
            SerializationContext ctx = new SerializationContext(writer,
                                                  client.getMessageContext());
            ctx.setPretty(true);
            body.output(ctx);
            sb.append(writer.toString());
            sb.append('\n');
        }
       
        return sb.toString();
View Full Code Here

Examples of org.apache.axis.message.SOAPEnvelope.output()

                    beanQName,
                    new SimpleSerializerFactory(SimpleBean.class, beanQName),
                    new SimpleDeserializerFactory(SimpleBean.class, beanQName));

        // Serialize the bean in to XML
        msg.output(context);
        // Get the XML as a string
        String msgString = writer.toString();

        Message message = new Message(msgString);
        message.setMessageContext(msgContext);
View Full Code Here

Examples of org.apache.cassandra.utils.OutputHandler.output()

                    continue;
                }
            }

            int numSSTables = readers.size();
            handler.output("Found " + numSSTables + " sstables that need upgrading.");

            for (SSTableReader sstable : readers)
            {
                try
                {
View Full Code Here

Examples of org.apache.easyant.core.report.XMLEasyAntReportWriter.output()

            ModuleRevisionId moduleRevisionId = easyantReport.getModuleDescriptor().getModuleRevisionId();
            File reportFile = new File(todir, getOutputPattern(moduleRevisionId, conf, "xml"));
            todir.mkdirs();
            OutputStream stream = new FileOutputStream(reportFile);
            XMLEasyAntReportWriter writer = new XMLEasyAntReportWriter();
            writer.output(easyantReport, stream);
            stream.close();
            genStyled(reportFile, getReportStylePath(), easyantReport);
        } catch (Exception e) {
            throw new BuildException("impossible to generate report: " + e, e);
        }
View Full Code Here

Examples of org.apache.ecs.ConcreteElement.output()

            out.write(versionDecl.getBytes());
        } catch (Exception e) { }
       
        for (int i=0; i<prolog.size(); i++) {
            ConcreteElement e = (ConcreteElement)prolog.elementAt(i);
            e.output(out);
            // XXX really this should use line separator!
            // XXX should also probably check for pretty print
            // XXX also probably have difficulties with encoding
            try
            {
View Full Code Here

Examples of org.apache.ecs.Document.output()

            Document document = new Document()
                .setDoctype(new Doctype.Html40Transitional())
                .setHtml(new Html().addElement(head).addElement(body));

            document.output(out);
        } catch(Exception e) {
            out.println("<html><body><h3>Fatal error generating navigation frame content</h3><pre>"
                    + Utils.getStackTrace(e) + "</pre></body></html>");
        } finally {
            if(out != null)
View Full Code Here

Examples of org.apache.ecs.XhtmlDocument.output()

          script jslink = new script();
          jslink.setLanguage("javascript");
          jslink.setSrc(extension.getScriptURL());
          doc.appendHead(jslink);
        }
        doc.output(w);
      }
      w.flush();
      w.close();
    }
    catch (Exception e)
View Full Code Here

Examples of org.apache.ecs.xhtml.table.output()

      //  for all rows

      //
      PrintWriter w = new PrintWriter(writer);
      if (onlyTable)
        table.output(w);
      else
      {
        XhtmlDocument doc = new XhtmlDocument();
        doc.appendBody(table);
        if (extension.getStyleURL() != null)
View Full Code Here

Examples of org.apache.fop.pdf.PDFDictionary.output()

    private void writeTrailer(OutputStream stream) throws IOException {
        pdf.append("trailer\n");
        stream.write(PDFDocument.encode(pdf.toString()));
        PDFDictionary dictionary = trailerDictionary.getDictionary();
        dictionary.put("/Size", objectReferences.size() + 1);
        dictionary.output(stream);
    }

}
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.