Commit Graph

139 Commits

Author SHA1 Message Date
Tim Allison
b21ad9dbd2 added ratted out Apache license to HPSFPropertiesOnlyDocument
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1508190 13f79535-47bb-0310-9956-ffa450edef68
2013-07-29 19:36:24 +00:00
Nick Burch
7cc22dd3c1 Refactor to avoid logic duplication on the property value -> string conversion
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1499329 13f79535-47bb-0310-9956-ffa450edef68
2013-07-03 11:36:11 +00:00
Nick Burch
fb8d0c1076 Fix bug #55191 - Avoid a ClassCastException if a HPSF string property isn't directly stored as a string
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1499326 13f79535-47bb-0310-9956-ffa450edef68
2013-07-03 11:24:01 +00:00
Nick Burch
8aca6fde15 Deprecate the old HPSF codepage Constants list, and change the code to use the new CodePageUtil class instead for their codepage work
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1497035 13f79535-47bb-0310-9956-ffa450edef68
2013-06-26 18:20:37 +00:00
Nick Burch
82df889469 Add a write method to HPSFPropertiesOnlyDocument, and use this to finish the unit tests for bug #54233
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1496683 13f79535-47bb-0310-9956-ffa450edef68
2013-06-26 00:18:41 +00:00
Nick Burch
90b74675d5 Pull the Properties-Only document type out to a superclass, so other places (eg unit tests) can use it
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1496680 13f79535-47bb-0310-9956-ffa450edef68
2013-06-26 00:10:43 +00:00
Nick Burch
40d49a54d2 Fix bug #54233 - Some HPSF documents require UnicodeStrings to be 4-byte aligned, spot these from the otherwise invalid length
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1496675 13f79535-47bb-0310-9956-ffa450edef68
2013-06-25 23:49:24 +00:00
Nick Burch
9d87fb9caa Fix to have consistent whitespace
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1496671 13f79535-47bb-0310-9956-ffa450edef68
2013-06-25 23:30:37 +00:00
Yegor Kozlov
133c0d7c0b Bug 52628 - Replace System.err info messages with a POILogger
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1410318 13f79535-47bb-0310-9956-ffa450edef68
2012-11-16 12:21:49 +00:00
Yegor Kozlov
af696ae5fd optimized unused imports and removed deprecation warnings in poi-main
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1296979 13f79535-47bb-0310-9956-ffa450edef68
2012-03-05 09:44:20 +00:00
Yegor Kozlov
8e5a395ec3 Bugzilla 52385,52337,52338: avoid trancated array and vector data when reading OLE properties
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1244388 13f79535-47bb-0310-9956-ffa450edef68
2012-02-15 07:49:25 +00:00
Nick Burch
991fd65ee8 Demote the HPSF CodePageString null check from an exception to a Warning, as we seem to be hitting it incorrectly (see bug #52258 for details)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1207477 13f79535-47bb-0310-9956-ffa450edef68
2011-11-28 17:38:29 +00:00
Yegor Kozlov
afecad3532 keep rat-check quiet, also started writing xslf docs
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1198722 13f79535-47bb-0310-9956-ffa450edef68
2011-11-07 13:22:04 +00:00
Sergey Vladimirov
c3704d0eff replace exception with warning
update test case

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1195053 13f79535-47bb-0310-9956-ffa450edef68
2011-10-29 22:00:42 +00:00
Sergey Vladimirov
2ed5482fbf additional safety belts to handle broken files
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1187647 13f79535-47bb-0310-9956-ffa450edef68
2011-10-22 02:52:52 +00:00
Sergey Vladimirov
f428ff6a57 adding safety belts for property type 0x0100 and other unknown types
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1187646 13f79535-47bb-0310-9956-ffa450edef68
2011-10-22 02:40:20 +00:00
Sergey Vladimirov
24f32eec41 some files has strange property values... try to handle them.
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1187644 13f79535-47bb-0310-9956-ffa450edef68
2011-10-22 02:23:19 +00:00
Sergey Vladimirov
ad10ff8187 add license header; organize imports
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1187641 13f79535-47bb-0310-9956-ffa450edef68
2011-10-22 02:07:18 +00:00
Sergey Vladimirov
0148cd3e20 rewrite VariantSupport to use TypedPropertyValue at max without breaking compatibility
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1187640 13f79535-47bb-0310-9956-ffa450edef68
2011-10-22 02:02:34 +00:00
Sergey Vladimirov
f6db23f921 values in vector not padded
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1187639 13f79535-47bb-0310-9956-ffa450edef68
2011-10-22 02:01:26 +00:00
Sergey Vladimirov
54525d661f replace exception with warning
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1187638 13f79535-47bb-0310-9956-ffa450edef68
2011-10-22 02:01:14 +00:00
Sergey Vladimirov
8d5369235d accept java string
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1187637 13f79535-47bb-0310-9956-ffa450edef68
2011-10-22 02:01:04 +00:00
Sergey Vladimirov
86d46b4713 replace exception with warning
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1187636 13f79535-47bb-0310-9956-ffa450edef68
2011-10-22 02:00:34 +00:00
Sergey Vladimirov
d27da3d905 fix type definition
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1187634 13f79535-47bb-0310-9956-ffa450edef68
2011-10-22 01:57:58 +00:00
Sergey Vladimirov
52457da856 fix NPE
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1187633 13f79535-47bb-0310-9956-ffa450edef68
2011-10-22 01:57:24 +00:00
Sergey Vladimirov
04fdfd2458 remove unused
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1187596 13f79535-47bb-0310-9956-ffa450edef68
2011-10-21 23:45:22 +00:00
Sergey Vladimirov
fddd46c4e6 add classes that will replace VariantSupport class just a bit later
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1187595 13f79535-47bb-0310-9956-ffa450edef68
2011-10-21 23:45:01 +00:00
Sergey Vladimirov
a35cf979d2 reuse code from LittleEndian class
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1187549 13f79535-47bb-0310-9956-ffa450edef68
2011-10-21 21:19:39 +00:00
Sergey Vladimirov
669c8f4362 -warning
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1178154 13f79535-47bb-0310-9956-ffa450edef68
2011-10-02 08:58:21 +00:00
Sergey Vladimirov
b170936050 preserve entries order in dictionaries
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1178153 13f79535-47bb-0310-9956-ffa450edef68
2011-10-02 08:58:11 +00:00
Sergey Vladimirov
0b92810530 fix VT_LPWSTR support
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1178149 13f79535-47bb-0310-9956-ffa450edef68
2011-10-02 08:44:05 +00:00
Sergey Vladimirov
03fac99902 fix VT_BOOL support
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1178147 13f79535-47bb-0310-9956-ffa450edef68
2011-10-02 08:36:51 +00:00
Sergey Vladimirov
99ee1edb17 always pad properties to 4 bytes
fix 51834 - Opening and Writing .doc file results in corrupt document

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1178113 13f79535-47bb-0310-9956-ffa450edef68
2011-10-02 01:06:22 +00:00
Sergey Vladimirov
02f7229fa3 pad VT_BOOL to 4 bytes
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1178112 13f79535-47bb-0310-9956-ffa450edef68
2011-10-02 00:59:03 +00:00
Sergey Vladimirov
46e1c019cc correctly add padding to 16-bit integers
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1178111 13f79535-47bb-0310-9956-ffa450edef68
2011-10-02 00:55:56 +00:00
Sergey Vladimirov
04a9868e95 rollback
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1178109 13f79535-47bb-0310-9956-ffa450edef68
2011-10-02 00:48:49 +00:00
Sergey Vladimirov
4e52ab109c correctly handle 2-byte properties
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1178107 13f79535-47bb-0310-9956-ffa450edef68
2011-10-02 00:30:52 +00:00
Sergey Vladimirov
7233b20798 add generics
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1178106 13f79535-47bb-0310-9956-ffa450edef68
2011-10-02 00:30:42 +00:00
Nick Burch
f2b541e026 Since a DirectoryNode has a reference to the underlying POIFSFileSystem, tidy up the POIDocument constructor to not need both passing in
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1053521 13f79535-47bb-0310-9956-ffa450edef68
2010-12-29 03:19:46 +00:00
Nick Burch
e69532597f Add main method
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@954834 13f79535-47bb-0310-9956-ffa450edef68
2010-06-15 11:40:00 +00:00
Nick Burch
4cb27e5095 Remove some generics warnings from the HPSF custom properties and sections parts
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@898804 13f79535-47bb-0310-9956-ffa450edef68
2010-01-13 15:42:53 +00:00
Josh Micich
ed1b4794a0 Bugzilla 47962 - Fixed some potential NPEs. Avoided unnecessary creation of box instances. Applied patch with mods
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@823348 13f79535-47bb-0310-9956-ffa450edef68
2009-10-08 22:29:41 +00:00
Yegor Kozlov
7e2a5dacee Avoid exception when reading ClipboardData packet in OLE property sets, see bugzilla 45583
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@806172 13f79535-47bb-0310-9956-ffa450edef68
2009-08-20 13:49:33 +00:00
Josh Micich
9926c89006 Fixed compiler warnings - unnecessary throws declaration
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@805552 13f79535-47bb-0310-9956-ffa450edef68
2009-08-18 19:49:28 +00:00
Josh Micich
c304173145 Fixed compiler warnings - unnecessary else
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@805492 13f79535-47bb-0310-9956-ffa450edef68
2009-08-18 16:50:24 +00:00
Josh Micich
c83d6bfa24 Fixing compiler warnings - unnecessary typecasts
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@805284 13f79535-47bb-0310-9956-ffa450edef68
2009-08-18 05:29:53 +00:00
Josh Micich
3f7db41945 Removed RCS tags from src/java javadocs
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@781869 13f79535-47bb-0310-9956-ffa450edef68
2009-06-04 23:07:15 +00:00
Josh Micich
e6149cca3a removed '@version $Id:$' tags (all were in javadoc comments)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@780832 13f79535-47bb-0310-9956-ffa450edef68
2009-06-01 21:07:20 +00:00
Nick Burch
68e203d5e6 Fix bug #46472 - Avoid NPE in HPSFPropertiesExtractor when no properties exist
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@732058 13f79535-47bb-0310-9956-ffa450edef68
2009-01-06 18:59:42 +00:00
Nick Burch
d60c98c37b Fix a typo in the file name, and add a generic method to POITextExtractor to get the appropriate metadata text extractor
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@685267 13f79535-47bb-0310-9956-ffa450edef68
2008-08-12 19:02:41 +00:00