ASF Bugzilla – Attachment 27465 Details for
Bug 51780
[PATCH] Feature Request: How to convert a dotx file to docx via poi?
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
With this patch I am able to change the mimetype.
POIChangeMimetypePatch.txt (text/plain), 2.05 KB, created by
Sebastian K.
on 2011-09-07 09:37:08 UTC
(
hide
)
Description:
With this patch I am able to change the mimetype.
Filename:
MIME Type:
Creator:
Sebastian K.
Created:
2011-09-07 09:37:08 UTC
Size:
2.05 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P ApachePOI >Index: src/ooxml/java/org/apache/poi/openxml4j/opc/ZipPackage.java >=================================================================== >--- src/ooxml/java/org/apache/poi/openxml4j/opc/ZipPackage.java (revision 1165214) >+++ src/ooxml/java/org/apache/poi/openxml4j/opc/ZipPackage.java (working copy) >@@ -42,8 +42,8 @@ > import org.apache.poi.openxml4j.util.ZipEntrySource; > import org.apache.poi.openxml4j.util.ZipFileZipEntrySource; > import org.apache.poi.openxml4j.util.ZipInputStreamZipEntrySource; >-import org.apache.poi.util.POILogger; > import org.apache.poi.util.POILogFactory; >+import org.apache.poi.util.POILogger; > > /** > * Physical zip package. >@@ -78,7 +78,7 @@ > * If the specified input stream not an instance of > * ZipInputStream. > */ >- ZipPackage(InputStream in, PackageAccess access) throws IOException { >+ public ZipPackage(InputStream in, PackageAccess access) throws IOException { > super(access); > this.zipArchive = new ZipInputStreamZipEntrySource( > new ZipInputStream(in) >Index: src/ooxml/java/org/apache/poi/openxml4j/opc/OPCPackage.java >=================================================================== >--- src/ooxml/java/org/apache/poi/openxml4j/opc/OPCPackage.java (revision 1165214) >+++ src/ooxml/java/org/apache/poi/openxml4j/opc/OPCPackage.java (working copy) >@@ -51,8 +51,8 @@ > import org.apache.poi.openxml4j.opc.internal.unmarshallers.PackagePropertiesUnmarshaller; > import org.apache.poi.openxml4j.opc.internal.unmarshallers.UnmarshallContext; > import org.apache.poi.openxml4j.util.Nullable; >-import org.apache.poi.util.POILogger; > import org.apache.poi.util.POILogFactory; >+import org.apache.poi.util.POILogger; > > /** > * Represents a container that can store multiple data objects. >@@ -396,6 +396,10 @@ > revertImpl(); > } > >+ public ContentTypeManager getContenTypeManager() { >+ return contentTypeManager; >+ } >+ > /** > * Add a thumbnail to the package. This method is provided to make easier > * the addition of a thumbnail in a package. You can do the same work by
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 51780
: 27465