Package com.adobe.dp.xml.util

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


        ser.newLine();
      }
      ser.endElement(ncxns, "pageList");
    }
    ser.endElement(ncxns, "ncx");
    ser.newLine();
    ser.endDocument();
  }

  private static int calculateDepth(TOCEntry entry) {
    Iterator it = entry.content();
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();
      attrs.put(null, "name", page.name);
View Full Code Here

      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.