Examples of startDocument()


Examples of org.apache.tika.sax.XHTMLContentHandler.startDocument()

                filesystem, DocumentSummaryInformation.DEFAULT_STREAM_NAME,
                metadata);

        XHTMLContentHandler xhtml =
            new XHTMLContentHandler(handler, metadata);
        xhtml.startDocument();
        xhtml.startElement("p");
        extractText(filesystem, new AppendableAdaptor(xhtml));
        xhtml.endElement("p");
        xhtml.endDocument();
    }
View Full Code Here

Examples of org.apache.uima.adapter.vinci.util.SaxVinciFrameBuilder.startDocument()

    ProcessingResourceMetaData md = mAE.getProcessingResourceMetaData();
    // convert to vinci frame
    AFrame response = new AFrame();
    SaxVinciFrameBuilder vinciFrameBuilder = new SaxVinciFrameBuilder();
    vinciFrameBuilder.setParentFrame(response);
    vinciFrameBuilder.startDocument();
    md.toXML(vinciFrameBuilder);
    vinciFrameBuilder.endDocument();
    return response;
  }
View Full Code Here

Examples of org.apache.uima.cas_data.impl.XCasToCasDataSaxHandler.startDocument()

  public void appendVinciFrameToCasData(AFrame aCasFrame, CasData aCasData) throws SAXException {
    // Use VinciSaxParser to generate SAX events from VinciFrame, and send
    // them to XCasToCasDataSaxHandler
    VinciSaxParser vinciSaxParser = new VinciSaxParser();
    XCasToCasDataSaxHandler handler = new XCasToCasDataSaxHandler(aCasData);
    handler.startDocument();
    handler.startElement("", "CAS", "CAS", null);
    vinciSaxParser.setContentHandler(handler);
    vinciSaxParser.parse(aCasFrame, false);
    handler.endElement("", "CAS", "CAS");
    handler.endDocument();
View Full Code Here

Examples of org.apache.ws.commons.serialize.CharSetXMLWriter.startDocument()

    XmlWriterFactory xwf;
    try {
      CharSetXMLWriter csw = new CharSetXMLWriter();
      StringWriter sw = new StringWriter();
      csw.setWriter(sw);
      csw.startDocument();
      csw.startElement("", "test", "test", new AttributesImpl());
      csw.endElement("", "test", "test");
      csw.endDocument();
      xwf = new CharSetXmlWriterFactory();
    } catch (Throwable t) {
View Full Code Here

Examples of org.apache.xalan.xsltc.TransletOutputHandler.startDocument()

      final TransletOutputHandler handler
    = factory.getTransletOutputHandler();

      transferOutputSettings(handler);
      handler.startDocument();
      return handler;
  }
  catch (Exception e) {
      throw new TransletException(e);
  }
View Full Code Here

Examples of org.apache.xalan.xsltc.compiler.util.MethodGenerator.startDocument()

      il.append(new INVOKEVIRTUAL(topLevelIdx));
 

  // start document
  il.append(transf.loadHandler());
  il.append(transf.startDocument());

  // push first arg for applyTemplates
  il.append(classGen.loadTranslet());
  // push translet for GETFIELD to get DOM arg
  il.append(classGen.loadTranslet());
View Full Code Here

Examples of org.apache.xml.dtm.ref.DTMDocumentImpl.startDocument()

    DTMDocumentImpl doc = new DTMDocumentImpl(null, 0, null,
                    org.apache.xpath.objects.XMLStringFactoryImpl.getFactory());

    try
      {
        doc.startDocument();

        doc.startElement("", "top", "top", null);

        doc.startElement("", "A", "A", null);
View Full Code Here

Examples of org.apache.xml.serialize.BaseMarkupSerializer.startDocument()

            serializer = new XMLSerializer(writer, new OutputFormat("XML", "UTF-8", true));
          }
          if (xpathExpr != null) {
            Matcher matcher =
                    PARSER.parse(xpathExpr);
            serializer.startDocument();//The MatchingContentHandler does not invoke startDocument.  See http://tika.markmail.org/message/kknu3hw7argwiqin
            parsingHandler = new MatchingContentHandler(serializer, matcher);
          } else {
            parsingHandler = serializer;
          }
        } else if (xpathExpr != null) {
View Full Code Here

Examples of org.apache.xml.serialize.XMLSerializer.startDocument()

        xmlFormat.setLineWidth(120);
        xmlFormat.setIndent(4);
       
        XMLSerializer xmlSerializer = new XMLSerializer(new BufferedWriter(new FileWriter(file)), xmlFormat);
        //        XMLSerializer xmlSerializer = new XMLSerializer(System.out, xmlFormat);
        xmlSerializer.startDocument();
        xmlSerializer.startElement("dspace-dc-types", null);
       
        // Save the schema defintion(s)
        saveSchema(context, xmlSerializer, schema);
View Full Code Here

Examples of org.apache.xml.serializer.SerializationHandler.startDocument()

    // use local variable for the current handler
    SerializationHandler rth = m_serializationHandler;

    try
    {
      rth.startDocument();
     
      // startDocument is "bottlenecked" in RTH. We need it acted upon immediately,
      // to set the DTM's state as in-progress, so that if the xsl:variable's body causes
      // further RTF activity we can keep that from bashing this DTM.
      rth.flushPending();
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.