Package org.openxml4j.opc.internal

Examples of org.openxml4j.opc.internal.ZipContentTypeManager


      while (entries.hasMoreElements()) {
        ZipEntry entry = entries.nextElement();
        if (entry.getName().equals(
            ContentTypeManager.CONTENT_TYPES_PART_NAME)) {
          try {
            this.contentTypeManager = new ZipContentTypeManager(
                getZipArchive().getInputStream(entry), this);
          } catch (IOException e) {
            throw new InvalidFormatException(e.getMessage());
          }
          break;
View Full Code Here


         * @param pkg
         */
        private static void configurePackage(Package pkg) {
    try {
      // Content type manager
      pkg.contentTypeManager = new ZipContentTypeManager(null, pkg);
      // Add default content types for .xml and .rels
      pkg.contentTypeManager.addContentType(
              PackagingURIHelper
                  .createPartName(PackagingURIHelper.PACKAGE_RELATIONSHIPS_ROOT_URI),
              ContentTypes.RELATIONSHIPS_PART);
View Full Code Here

TOP

Related Classes of org.openxml4j.opc.internal.ZipContentTypeManager

Copyright © 2018 www.massapicom. 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.