aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/poi/poifs
Commit message (Collapse)AuthorAgeFilesLines
* 65206 - Migrate ant / maven to gradle buildAndreas Beeker2021-03-27115-18320/+0
| | | | | | | | update gradle files and project structure along https://github.com/centic9/poi/tree/gradle_build remove eclipse IDE project files remove obsolete record generator files git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1888111 13f79535-47bb-0310-9956-ffa450edef68
* try to re-enable new getBlockAt codePJ Fanning2021-03-191-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1887828 13f79535-47bb-0310-9956-ffa450edef68
* add back some new codePJ Fanning2021-03-151-0/+45
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1887685 13f79535-47bb-0310-9956-ffa450edef68
* revert recent changesPJ Fanning2021-03-151-68/+30
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1887682 13f79535-47bb-0310-9956-ffa450edef68
* [bug-65184] revert due to integration test failuresPJ Fanning2021-03-141-15/+11
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1887660 13f79535-47bb-0310-9956-ffa450edef68
* reformat filePJ Fanning2021-03-141-203/+203
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1887658 13f79535-47bb-0310-9956-ffa450edef68
* [bug-65184] Improve performance of POFSMiniStore getBlockAt. Thanks to sitsPJ Fanning2021-03-142-21/+63
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1887657 13f79535-47bb-0310-9956-ffa450edef68
* [bug-65184] Improve performance of POFSMiniStore getBlockAt. Thanks to sitsPJ Fanning2021-03-131-153/+151
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1887604 13f79535-47bb-0310-9956-ffa450edef68
* [bug-63046] Use Log4j 2 for loggingMarius Volkhart2021-02-217-38/+37
| | | | | | | | | | This removes the POILogger and POILogFactory mechanism for logging. This mechanism was created at a time when the Java landscape looked very different than it does today. Log4j 2 is an Apache Foundation project that is well maintained and is widely regarded as having good performance and capabilities. We use only the Log4j API artifact. This lets application developers choose how they want to capture logging events if at all. Integrations with Log4j 2 Core and Logback are available from the Log4j project. Closes #224 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1886770 13f79535-47bb-0310-9956-ffa450edef68
* Sonar fixesAndreas Beeker2021-01-174-15/+14
| | | | | | | constant name to match the regular expression '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$' reorder "final static" -> "static final" git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1885613 13f79535-47bb-0310-9956-ffa450edef68
* Include file-name in EmptyFileExceptionDominik Stadler2021-01-061-4/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1885192 13f79535-47bb-0310-9956-ffa450edef68
* Sonar fixesAndreas Beeker2020-12-265-28/+26
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1884807 13f79535-47bb-0310-9956-ffa450edef68
* #65026 - Migrate tests to Junit 5Andreas Beeker2020-12-241-1/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1884783 13f79535-47bb-0310-9956-ffa450edef68
* avoid string concatsPJ Fanning2020-12-172-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1884572 13f79535-47bb-0310-9956-ffa450edef68
* use less contentious language in code commentsPJ Fanning2020-12-151-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1884473 13f79535-47bb-0310-9956-ffa450edef68
* Fix file-handle-leaks when re-writing documents or slideshowsDominik Stadler2020-11-012-14/+19
| | | | | | | When replacing a directory, we should close the previous one Close some resources in tests git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1883038 13f79535-47bb-0310-9956-ffa450edef68
* Sonar fixes - a few "Try-with-resources should be used"Andreas Beeker2020-10-242-38/+30
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1882820 13f79535-47bb-0310-9956-ffa450edef68
* Sonar fixes - a few "String literals should not be duplicated"Andreas Beeker2020-10-241-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1882819 13f79535-47bb-0310-9956-ffa450edef68
* use the forbidden-apis policies corresponding to the JREAndreas Beeker2020-08-153-31/+21
| | | | | | fix the forbidden apis issues git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1880866 13f79535-47bb-0310-9956-ffa450edef68
* also handle wrapped OOXML "Package" nodes inside of OLE2 containersAndreas Beeker2020-08-141-3/+10
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1880861 13f79535-47bb-0310-9956-ffa450edef68
* #64411 - Provide JigSaw modulesAndreas Beeker2020-07-2219-47/+1960
| | | | | | | | | | | | | | | - use classpath-build for Java 8, otherwise use modulepath - save module-info classes to source, when using Java 9+ environment - rename example packages - otherwise package clashes occured in the tests - move agile encryption from ooxml to main. remove EncryptionInfo XmlBeans and schema and use custom xml marshalling - move ooxml test classes which reside in the same package as their tested main class - rename base test classes to "BaseTest..." - temporarily I've used a light version of the main test classes to test scratchpad / ooxml - build.xml - fixed the Rhino javascript errors of the dependency-macros - DrawTextParagraph - fixed StringIndexOutOfBounds when logging set to debug level - use JigSaw provider interface (= Java ServiceLoader), i.e. it wasn't possible (without openening everything), to access ooxml factory classes from main factory stub git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1880164 13f79535-47bb-0310-9956-ffa450edef68
* 64512 - Ole10Native aka embedded / object packager - handle UTF16 variantsAndreas Beeker2020-06-115-194/+269
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1878730 13f79535-47bb-0310-9956-ffa450edef68
* [github-182] Fix root property size calculation. Thanks to netmackan. This ↵PJ Fanning2020-06-102-2/+24
| | | | | | closes #182 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1878721 13f79535-47bb-0310-9956-ffa450edef68
* Fix some IDE warnings, make lock-objects final, use generics, remove unused ↵Dominik Stadler2020-05-162-29/+24
| | | | | | allocated fields to reduce memory overhead of DocumentInputStream git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1877818 13f79535-47bb-0310-9956-ffa450edef68
* Bug 64322: Optimize performance of reading ole2 filesDominik Stadler2020-05-161-2/+16
| | | | | | | | | Remember channel-size to no re-read it for every read-access, but reset it if we extend the size of the file profiling indicates Channel.size() sometimes has similar runtime overhead as position() or read()! git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1877816 13f79535-47bb-0310-9956-ffa450edef68
* #64387 - Big POIFS stream result in OOMAndreas Beeker2020-04-285-171/+195
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1877144 13f79535-47bb-0310-9956-ffa450edef68
* Sonar fixesAndreas Beeker2020-04-191-7/+7
| | | | | | | | - Math operands should be cast before assignment - Suppress - Make sure that command line arguments are used safely here - Suppress - Replace this use of System.out or System.err by a logger. git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1876737 13f79535-47bb-0310-9956-ffa450edef68
* Sonar fixes - Ignore System.out-calls and args checks in examplesAndreas Beeker2020-04-181-188/+62
| | | | | | Remove superfluous internal methods git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1876704 13f79535-47bb-0310-9956-ffa450edef68
* Replace Allocate+System.arraycopy with Array.copyOf/Range and ↵Andreas Beeker2020-04-163-57/+47
| | | | | | IOUtils.safelyClone git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1876640 13f79535-47bb-0310-9956-ffa450edef68
* #64350 - Sonar fix - "Iterator.next()" methods should throw ↵Andreas Beeker2020-04-143-67/+72
| | | | | | "NoSuchElementException" git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1876525 13f79535-47bb-0310-9956-ffa450edef68
* #63745 - Add traversing and debugging interface to HSSFAndreas Beeker2020-04-122-2/+2
| | | | | | | | | | This makes toString() implementations obsolete. This also contains preparation for #64036 to (maybe) change the record factory interface of HSSF. Remove duplicated record SeriesToChartGroupRecord, which is a duplicate of SeriesChartGroupIndexRecord. git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1876433 13f79535-47bb-0310-9956-ffa450edef68
* Sonar Fixes - "static" base class members should not be accessed via derived ↵Andreas Beeker2020-04-021-27/+28
| | | | | | types git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1876067 13f79535-47bb-0310-9956-ffa450edef68
* Try to use https for poi.apache.org everywhereDominik Stadler2020-03-081-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1874981 13f79535-47bb-0310-9956-ffa450edef68
* replace some calls to Collection methods with shorter/more effective versionsAxel Howind2020-02-203-4/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1874263 13f79535-47bb-0310-9956-ffa450edef68
* Handle empty files correctly when looking for FileMagic to avoid ↵Dominik Stadler2020-01-271-2/+5
| | | | | | NegativeArraySizeException git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1873232 13f79535-47bb-0310-9956-ffa450edef68
* BUG 64015 -- swap out java.util.BitSet for zaxxer's SparseBitSetTim Allison2020-01-072-7/+7
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1872445 13f79535-47bb-0310-9956-ffa450edef68
* #64004 - Replace clone() with copy constructor - mainly HSSF classesAndreas Beeker2019-12-2221-264/+359
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1871911 13f79535-47bb-0310-9956-ffa450edef68
* Replace manual close with try-with-resourcesDominik Stadler2019-12-151-4/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1871590 13f79535-47bb-0310-9956-ffa450edef68
* Sonar fixes - type: bugs / severity: majorAndreas Beeker2019-12-085-127/+120
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1871064 13f79535-47bb-0310-9956-ffa450edef68
* Sonar Fixes - fix/annotate type "vulnerability" / severity "blocker"Andreas Beeker2019-12-012-0/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1870657 13f79535-47bb-0310-9956-ffa450edef68
* Sonar fixes - use try-with-resourcesAndreas Beeker2019-11-305-24/+21
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1870653 13f79535-47bb-0310-9956-ffa450edef68
* Replace StringBuffer with StringBuilderAndreas Beeker2019-11-294-5/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1870600 13f79535-47bb-0310-9956-ffa450edef68
* use zero size arg to toArray(), use Collection.addAll() (#63805, second patch)Axel Howind2019-11-171-4/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1869919 13f79535-47bb-0310-9956-ffa450edef68
* Bug 60656 - Emf image support in slideshowsAndreas Beeker2019-11-081-0/+2
| | | | | | | | - Use ImageRenderer instead of prerendered BufferedImage to achieve better rendering result - Fix extraction of EMF embeddings - Fix renderer state handling in HemfGraphics (but still not perfect) git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1869582 13f79535-47bb-0310-9956-ffa450edef68
* #60656 - EMF image support in slideshowsAndreas Beeker2019-11-011-1/+10
| | | | | | | | | | - extract option for embedded element in PPTX2PNG - minor GenericRecordJsonWriter fixes - fix EMF+ world transformations - fix initialization emf pictures, which were partly unbounded -> excessive memory consumption - change EMF+ brushes to continueable record git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1869272 13f79535-47bb-0310-9956-ffa450edef68
* #63745 - Add traversing and debugging interfaceAndreas Beeker2019-09-115-7/+102
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1866808 13f79535-47bb-0310-9956-ffa450edef68
* fix result of multiplication cast to wider typeAlain Béarez2019-05-211-1/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1859595 13f79535-47bb-0310-9956-ffa450edef68
* fix potential input resource leaks (LGTM)Alain Béarez2019-05-211-4/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1859591 13f79535-47bb-0310-9956-ffa450edef68
* FileMagic now has patterns with up to 12 bytes (JPG)Dominik Stadler2019-05-201-4/+19
| | | | | | | Avoid exception if a very short file is encountered Add more tests git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1859564 13f79535-47bb-0310-9956-ffa450edef68
* Bug 63431 -- unbug ChunkedCipherInputStream's read()Tim Allison2019-05-151-2/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1859251 13f79535-47bb-0310-9956-ffa450edef68