Package com.adobe.dp.xml.util

Examples of com.adobe.dp.xml.util.XMLSerializer.startElement()


        attrs.put(null, "value", countStr);
        attrs.put(null, "type", "normal");
        attrs.put(null, "playOrder", Integer.toString(page.xref.getPlayOrder()));
        ser.startElement(ncxns, "pageTarget", attrs, false);
        ser.newLine();
        ser.startElement(ncxns, "navLabel", null, false);
        ser.startElement(ncxns, "text", null, false);
        char[] text = page.name.toCharArray();
        ser.text(text, 0, text.length);
        ser.endElement(ncxns, "text");
        ser.endElement(ncxns, "navLabel");
View Full Code Here


        attrs.put(null, "type", "normal");
        attrs.put(null, "playOrder", Integer.toString(page.xref.getPlayOrder()));
        ser.startElement(ncxns, "pageTarget", attrs, false);
        ser.newLine();
        ser.startElement(ncxns, "navLabel", null, false);
        ser.startElement(ncxns, "text", null, false);
        char[] text = page.name.toCharArray();
        ser.text(text, 0, text.length);
        ser.endElement(ncxns, "text");
        ser.endElement(ncxns, "navLabel");
        ser.newLine();
View Full Code Here

        ser.endElement(ncxns, "text");
        ser.endElement(ncxns, "navLabel");
        ser.newLine();
        attrs = new SMapImpl();
        attrs.put(null, "src", page.xref.makeReference(this));
        ser.startElement(ncxns, "content", attrs, false);
        ser.endElement(ncxns, "content");
        ser.newLine();
        ser.endElement(ncxns, "pageTarget");
        ser.newLine();
      }
View Full Code Here

  void serializePageMap(PageMapResource pageMap, OutputStream out) throws IOException {
    final String pagemapns = "http://www.idpf.org/2007/opf";
    XMLSerializer ser = new XMLSerializer(out);
    ser.startDocument("1.0", "UTF-8");
    ser.startElement(pagemapns, "page-map", null, true);
    ser.newLine();
    Iterator pages = this.pages.iterator();
    while (pages.hasNext()) {
      Page page = (Page) pages.next();
      SMapImpl attrs = new SMapImpl();
View Full Code Here

    while (pages.hasNext()) {
      Page page = (Page) pages.next();
      SMapImpl attrs = new SMapImpl();
      attrs.put(null, "name", page.name);
      attrs.put(null, "href", page.xref.makeReference(pageMap));
      ser.startElement(pagemapns, "page", attrs, false);
      ser.endElement(pagemapns, "page");
      ser.newLine();
    }
    ser.endElement(pagemapns, "page-map");
    ser.endDocument();
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.