Package com.adobe.dp.xml.util

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


        ser.newLine();
      } else {
        ser.startElement(item.ns, item.name, attrs, false);
        char[] arr = value.toCharArray();
        ser.text(arr, 0, arr.length);
        ser.endElement(item.ns, item.name);
        ser.newLine();
      }
    }
    ser.endElement(opfns, "metadata");
    ser.newLine();
View Full Code Here


        ser.text(arr, 0, arr.length);
        ser.endElement(item.ns, item.name);
        ser.newLine();
      }
    }
    ser.endElement(opfns, "metadata");
    ser.newLine();
    ser.startElement(opfns, "manifest", null, false);
    ser.newLine();
    it = epub.resources();
    while (it.hasNext()) {
View Full Code Here

        attrs = new SMapImpl();
        attrs.put(null, "id", epub.assignId(r));
        attrs.put(null, "href", makeReference(r.getName(), null));
        attrs.put(null, "media-type", r.mediaType);
        ser.startElement(opfns, "item", attrs, false);
        ser.endElement(opfns, "item");
        ser.newLine();
      }
    }
    ser.endElement(opfns, "manifest");
    ser.newLine();
View Full Code Here

        ser.startElement(opfns, "item", attrs, false);
        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)
View Full Code Here

      if(attrs==null){
        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");
View Full Code Here

      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();
    ser.endDocument();
  }
View Full Code Here

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

    String uid = epub.getDCMetadata("identifier");
    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));
View Full Code Here

    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);
    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);
View Full Code Here

    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");
    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);
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.