Package com.adobe.dp.xml.util

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


        ser.endElement(opfns, "item");
        ser.newLine();
      }
    }
    ser.endElement(opfns, "manifest");
    ser.newLine();
    attrs = new SMapImpl();
    if (epub.toc != null)
      attrs.put(null, "toc", epub.assignId(epub.toc));
    if (epub.pageMap != null)
      attrs.put(null, "page-map", epub.assignId(epub.pageMap));
View Full Code Here


    if (epub.toc != null)
      attrs.put(null, "toc", epub.assignId(epub.toc));
    if (epub.pageMap != null)
      attrs.put(null, "page-map", epub.assignId(epub.pageMap));
    ser.startElement(opfns, "spine", attrs, false);
    ser.newLine();
    it = epub.spine();
    while (it.hasNext()) {
      Resource r = (Resource) it.next();
        //[LC] improved: added the possibility to control from the outside de UUID     
      attrs=r.getSerializationAttributes();
View Full Code Here

        attrs = new SMapImpl();
      }
      attrs.put(null, "idref", epub.assignId(r));
      ser.startElement(opfns, "itemref", attrs, false);
      ser.endElement(opfns, "itemref");
      ser.newLine();
    }
    ser.endElement(opfns, "spine");
    ser.newLine();
    ser.endElement(opfns, "package");
    ser.newLine();
View Full Code Here

      ser.startElement(opfns, "itemref", attrs, false);
      ser.endElement(opfns, "itemref");
      ser.newLine();
    }
    ser.endElement(opfns, "spine");
    ser.newLine();
    ser.endElement(opfns, "package");
    ser.newLine();
    ser.endDocument();
  }
}
View Full Code Here

      ser.newLine();
    }
    ser.endElement(opfns, "spine");
    ser.newLine();
    ser.endElement(opfns, "package");
    ser.newLine();
    ser.endDocument();
  }
}
View Full Code Here

    attrs.put(null, "version", "2005-1");
    String lang = epub.getDCMetadata("language");
    if (lang != null)
      attrs.put(null, "xml:lang", lang);
    ser.startElement(ncxns, "ncx", attrs, true);
    ser.newLine();
    ser.startElement(ncxns, "head", null, false);
    ser.newLine();
    attrs = new SMapImpl();
    attrs.put(null, "name", "dtb:uid");
    String uid = epub.getDCMetadata("identifier");
View Full Code Here

    if (lang != null)
      attrs.put(null, "xml:lang", lang);
    ser.startElement(ncxns, "ncx", attrs, true);
    ser.newLine();
    ser.startElement(ncxns, "head", null, false);
    ser.newLine();
    attrs = new SMapImpl();
    attrs.put(null, "name", "dtb:uid");
    String uid = epub.getDCMetadata("identifier");
    if (uid == null)
      uid = "";
View Full Code Here

    if (uid == null)
      uid = "";
    attrs.put(null, "content", uid);
    ser.startElement(ncxns, "meta", attrs, false);
    ser.endElement(ncxns, "meta");
    ser.newLine();
    attrs = new SMapImpl();
    attrs.put(null, "name", "dtb:depth");
    int depth = calculateDepth(rootTOCEntry);
    attrs.put(null, "content", Integer.toString(depth));
    ser.startElement(ncxns, "meta", attrs, false);
View Full Code Here

    attrs.put(null, "name", "dtb:depth");
    int depth = calculateDepth(rootTOCEntry);
    attrs.put(null, "content", Integer.toString(depth));
    ser.startElement(ncxns, "meta", attrs, false);
    ser.endElement(ncxns, "meta");
    ser.newLine();
    attrs = new SMapImpl();
    attrs.put(null, "name", "dtb:totalPageNumber");
    attrs.put(null, "content", Integer.toString(pages.size()));
    ser.startElement(ncxns, "meta", attrs, false);
    ser.endElement(ncxns, "meta");
View Full Code Here

    attrs = new SMapImpl();
    attrs.put(null, "name", "dtb:totalPageNumber");
    attrs.put(null, "content", Integer.toString(pages.size()));
    ser.startElement(ncxns, "meta", attrs, false);
    ser.endElement(ncxns, "meta");
    ser.newLine();
    attrs = new SMapImpl();
    attrs.put(null, "name", "dtb:maxPageNumber");
    attrs.put(null, "content", Integer.toString(pages.size()));
    ser.startElement(ncxns, "meta", attrs, false);
    ser.endElement(ncxns, "meta");
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.