]> source.dussan.org Git - poi.git/commit
* Writing support added to the SummaryInformation and DocumentSummaryInformation...
authorRainer Klute <klute@apache.org>
Fri, 3 Mar 2006 16:57:55 +0000 (16:57 +0000)
committerRainer Klute <klute@apache.org>
Fri, 3 Mar 2006 16:57:55 +0000 (16:57 +0000)
commit73a9af683f7c986421d12e07e680111d94a609c4
treeb315b5320a537d72619cae55c393357f4737b5c0
parenta36d020021bb41eade6d653005ef42f60a0a609a
* Writing support added to the SummaryInformation and DocumentSummaryInformation classes. These classes now have methods for setting and removing properties. Coherent extensions are:
** Documentation section about writing standard properties added to the HPSF HOW-TO.
** Example application added showing how to modify the document summary information.
** Testcases added for testing modifying summary information and document summary information.
** PropertySetFactory extended to create SummaryInformation and DocumentSummaryInformation instances.

* Added MutablePropertySet.write(DirectoryEntry, String) to ease writing a property set to a POI filesystem document.

* Improved codepage handling.

* Bug fixed: Integral values were read and written as unsigned instead of signed.

* Reworked the mapping between variant types and Java types: Variant.VT_I4 is mapped to Integer now and Variant.VT_I8 to Long. This might cause incompatibilities if you are doing low-level HPSF programming.

* Changed SectionIDMap.DOCUMENT_SUMMARY_INFORMATION_ID from a byte[] to a byte[][] in order to contain the format ID of the first and the second section. This is an incompatible change!

* Added PropertySet.getFirstSection(). This method is similar to getSingleSection() won't choke if the property set has more than one section.

* Support for low-level reading and writing of Variant.VT_I8 type properties added.

* Unnecessary casts removed.

* Poibrowser's display format changed slightly.

git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@382887 13f79535-47bb-0310-9956-ffa450edef68
50 files changed:
src/contrib/src/org/apache/poi/contrib/poibrowser/POIBrowser.java
src/contrib/src/org/apache/poi/contrib/poibrowser/PropertySetDescriptor.java
src/contrib/src/org/apache/poi/contrib/poibrowser/PropertySetDescriptorRenderer.java
src/documentation/content/xdocs/hpsf/how-to.xml
src/documentation/content/xdocs/hpsf/internals.xml
src/examples/src/org/apache/poi/hpsf/examples/ModifyDocumentSummaryInformation.java [new file with mode: 0644]
src/java/org/apache/poi/hpsf/ClassID.java
src/java/org/apache/poi/hpsf/Constants.java
src/java/org/apache/poi/hpsf/CustomProperties.java [new file with mode: 0644]
src/java/org/apache/poi/hpsf/CustomProperty.java [new file with mode: 0644]
src/java/org/apache/poi/hpsf/DocumentSummaryInformation.java
src/java/org/apache/poi/hpsf/HPSFException.java
src/java/org/apache/poi/hpsf/HPSFRuntimeException.java
src/java/org/apache/poi/hpsf/IllegalPropertySetDataException.java
src/java/org/apache/poi/hpsf/MarkUnsupportedException.java
src/java/org/apache/poi/hpsf/MissingSectionException.java [new file with mode: 0644]
src/java/org/apache/poi/hpsf/MutablePropertySet.java
src/java/org/apache/poi/hpsf/MutableSection.java
src/java/org/apache/poi/hpsf/NoFormatIDException.java
src/java/org/apache/poi/hpsf/NoSingleSectionException.java
src/java/org/apache/poi/hpsf/Property.java
src/java/org/apache/poi/hpsf/PropertySet.java
src/java/org/apache/poi/hpsf/PropertySetFactory.java
src/java/org/apache/poi/hpsf/ReadingNotSupportedException.java
src/java/org/apache/poi/hpsf/Section.java
src/java/org/apache/poi/hpsf/SpecialPropertySet.java
src/java/org/apache/poi/hpsf/SummaryInformation.java
src/java/org/apache/poi/hpsf/Thumbnail.java
src/java/org/apache/poi/hpsf/TypeWriter.java
src/java/org/apache/poi/hpsf/UnexpectedPropertySetTypeException.java
src/java/org/apache/poi/hpsf/UnsupportedVariantTypeException.java
src/java/org/apache/poi/hpsf/Util.java
src/java/org/apache/poi/hpsf/Variant.java
src/java/org/apache/poi/hpsf/VariantSupport.java
src/java/org/apache/poi/hpsf/WritingNotSupportedException.java
src/java/org/apache/poi/hpsf/wellknown/PropertyIDMap.java
src/java/org/apache/poi/hpsf/wellknown/SectionIDMap.java
src/java/org/apache/poi/util/LittleEndian.java
src/testcases/org/apache/poi/hpsf/basic/AllDataFilesTester.java [new file with mode: 0644]
src/testcases/org/apache/poi/hpsf/basic/TestBasic.java
src/testcases/org/apache/poi/hpsf/basic/TestClassID.java
src/testcases/org/apache/poi/hpsf/basic/TestEmptyProperties.java
src/testcases/org/apache/poi/hpsf/basic/TestMetaDataIPI.java [new file with mode: 0644]
src/testcases/org/apache/poi/hpsf/basic/TestUnicode.java
src/testcases/org/apache/poi/hpsf/basic/TestWrite.java
src/testcases/org/apache/poi/hpsf/basic/TestWriteWellKnown.java [new file with mode: 0644]
src/testcases/org/apache/poi/hpsf/data/TestCorel.shw [changed mode: 0755->0644]
src/testcases/org/apache/poi/hpsf/data/TestGermanWord90.doc [changed mode: 0755->0644]
src/testcases/org/apache/poi/hpsf/data/TestRobert_Flaherty.doc [changed mode: 0755->0644]
src/testcases/org/apache/poi/hpsf/data/TestWriteWellKnown.doc [new file with mode: 0644]