Package com.adobe.dp.xml.util

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


    attrs = new SMapImpl();
    attrs.put(null, "full-path", opf.name);
    attrs.put(null, "media-type", opf.mediaType);
    ser.startElement(ocfns, "rootfile", attrs, true);
    ser.endElement(ocfns, "rootfile");
    ser.newLine();
    ser.endElement(ocfns, "rootfiles");
    ser.newLine();
    ser.endElement(ocfns, "container");
    ser.newLine();
    ser.endDocument();
View Full Code Here


    attrs.put(null, "media-type", opf.mediaType);
    ser.startElement(ocfns, "rootfile", attrs, true);
    ser.endElement(ocfns, "rootfile");
    ser.newLine();
    ser.endElement(ocfns, "rootfiles");
    ser.newLine();
    ser.endElement(ocfns, "container");
    ser.newLine();
    ser.endDocument();
    container.close();
  }
View Full Code Here

    ser.endElement(ocfns, "rootfile");
    ser.newLine();
    ser.endElement(ocfns, "rootfiles");
    ser.newLine();
    ser.endElement(ocfns, "container");
    ser.newLine();
    ser.endDocument();
    container.close();
  }

  public void cascadeStyles() {
View Full Code Here

    ser.setPreferredPrefixMap(nsmap);
    SMapImpl attrs = new SMapImpl();
    attrs.put(null, "version", "2.0");
    attrs.put(null, "unique-identifier", "bookid");
    ser.startElement(opfns, "package", attrs, true);
    ser.newLine();
    ser.startElement(opfns, "metadata", null, false);
    ser.newLine();
    Iterator it = epub.metadata.iterator();
    int identifierCount = 0;
    while (it.hasNext()) {
View Full Code Here

    attrs.put(null, "version", "2.0");
    attrs.put(null, "unique-identifier", "bookid");
    ser.startElement(opfns, "package", attrs, true);
    ser.newLine();
    ser.startElement(opfns, "metadata", null, false);
    ser.newLine();
    Iterator it = epub.metadata.iterator();
    int identifierCount = 0;
    while (it.hasNext()) {
      Publication.SimpleMetadata item = (Publication.SimpleMetadata) it.next();
      if (item.ns != null && item.ns.equals(dcns) && item.name.equals("identifier")) {
View Full Code Here

        attrs = new SMapImpl();
        attrs.put(null, "name", item.name);
        attrs.put(null, "content", value);
        ser.startElement(opfns, "meta", attrs, false);
        ser.endElement(opfns, "meta");
        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);
View Full Code Here

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

        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()) {
      Resource r = (Resource) it.next();
View Full Code Here

      }
    }
    ser.endElement(opfns, "metadata");
    ser.newLine();
    ser.startElement(opfns, "manifest", null, false);
    ser.newLine();
    it = epub.resources();
    while (it.hasNext()) {
      Resource r = (Resource) it.next();
      if (r != this) {
        attrs = new SMapImpl();
View Full Code Here

        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();
    attrs = new SMapImpl();
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.