aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/poi/poifs/filesystem/POIFSFileSystem.java
Commit message (Collapse)AuthorAgeFilesLines
* 65206 - Migrate ant / maven to gradle buildAndreas Beeker2021-03-271-960/+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
* [bug-63046] Use Log4j 2 for loggingMarius Volkhart2021-02-211-4/+4
| | | | | | | | | | 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
* 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-261-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1884807 13f79535-47bb-0310-9956-ffa450edef68
* #64387 - Big POIFS stream result in OOMAndreas Beeker2020-04-281-4/+10
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1877144 13f79535-47bb-0310-9956-ffa450edef68
* replace some calls to Collection methods with shorter/more effective versionsAxel Howind2020-02-201-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1874263 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
* use ArithmeticUtils for calculations that might overflowPJ Fanning2019-04-151-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1857596 13f79535-47bb-0310-9956-ffa450edef68
* use ArithmeticUtils for calculations that might overflowPJ Fanning2019-04-151-1/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1857594 13f79535-47bb-0310-9956-ffa450edef68
* [bug-63344] add TempFilePOIFSFileSystemPJ Fanning2019-04-131-5/+9
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1857461 13f79535-47bb-0310-9956-ffa450edef68
* adjust formattingPJ Fanning2019-04-131-415/+389
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1857452 13f79535-47bb-0310-9956-ffa450edef68
* Code-style: Unify how arrays are specified from C-style to normal Java-styleDominik Stadler2018-12-251-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1849716 13f79535-47bb-0310-9956-ffa450edef68
* #62649 - Remove OPOIFS* / rename NPOIFS* to POIFS*Andreas Beeker2018-08-311-54/+880
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1839709 13f79535-47bb-0310-9956-ffa450edef68
* #62649 - Remove OPOIFSAndreas Beeker2018-08-261-1/+1
| | | | | | Fix HPSF UTF-8 encoding error with Bug52311.doc while refactoring CopyCompare/EntryUtils git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1839201 13f79535-47bb-0310-9956-ffa450edef68
* Remove deprecated methods from NPOIFSFileSystem/OPOIFSFileSystemDominik Stadler2017-09-171-9/+2
| | | | | | IntelliJ warnings/suggestions git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1808622 13f79535-47bb-0310-9956-ffa450edef68
* #61381 - PushbackInputStreams passed to ZipHelper may not hold 8 bytesAndreas Beeker2017-08-111-21/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1804854 13f79535-47bb-0310-9956-ffa450edef68
* Reformat code slightlyDominik Stadler2017-08-011-9/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1803612 13f79535-47bb-0310-9956-ffa450edef68
* javadoc: replace invalid self enclosing elementsPJ Fanning2017-07-171-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1802110 13f79535-47bb-0310-9956-ffa450edef68
* Update the big file test to use POIFSFileSystem.create(File), and tweak javadocsNick Burch2017-02-101-2/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1782454 13f79535-47bb-0310-9956-ffa450edef68
* Fix some Findbugs reportsDominik Stadler2016-12-311-14/+12
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1776714 13f79535-47bb-0310-9956-ffa450edef68
* Start on unit testing for HSSFWorkbook.write(File), bug in POIFS to fix firstNick Burch2016-07-201-1/+18
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1753487 13f79535-47bb-0310-9956-ffa450edef68
* #57919 Start on support for writing to a new File (faster than OutputStream)Nick Burch2016-07-201-0/+22
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1753486 13f79535-47bb-0310-9956-ffa450edef68
* Bug 58326 - Forbidden APIs patches - first set of changes for locale and ↵Andreas Beeker2015-09-071-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | timezone settings also includes fixes for - name shadowing - unused deprecated method "getClipRect" in classes extending Graphics2d - HexDump - replaced intermediate String.format calls with custom padding - convert testcases to junit4 - closing resources also tested with an arbitary timezone (PST) and locale (ru) supresses forbidden apis check for - LocaleUtil (the only place where Locale.getDefault() and TimeZone.getDefault() should be called) - Classes using FontMetrics - without the actual text it's difficult to return something sane Some usage of UTC and Locale.ROOT might be still wrong, e.g. in MapiMessage we don't access the extended mapi properties, which might contain the timezone DataFormatter has now a Observable property which need to be observed when custom formats are used and the Locale changes git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1701688 13f79535-47bb-0310-9956-ffa450edef68
* #56791 Make NPOIFS the default when POIFSFileSystem is requestedNick Burch2015-05-261-3/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1681804 13f79535-47bb-0310-9956-ffa450edef68
* Leave POIFSFileSystem as a lightweight shim around OPOIFSFileSystem pending ↵Nick Burch2015-05-111-495/+9
| | | | | | the final changeover for #56791 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1678790 13f79535-47bb-0310-9956-ffa450edef68
* #56791 More updates from OPOIFS to NPOIFSNick Burch2015-05-111-8/+8
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1678787 13f79535-47bb-0310-9956-ffa450edef68
* Begin making NPOIFS the default #56791Nick Burch2015-05-111-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1678677 13f79535-47bb-0310-9956-ffa450edef68
* If an empty stream or file is given to WorkbookFactory.create, give a more ↵Nick Burch2015-05-041-15/+20
| | | | | | informative exception - EmptyFileException git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1677562 13f79535-47bb-0310-9956-ffa450edef68
* Add some @Overrides suggested by Eclipse, generics and some warnings,Dominik Stadler2013-12-261-20/+10
| | | | | | convert some tabs to spaces. git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1553466 13f79535-47bb-0310-9956-ffa450edef68
* More PropertyTable refactoring - pull common code out into a Base, so we can ↵Nick Burch2010-12-201-1/+2
| | | | | | plug in a different block reader/writer for NIO git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1051029 13f79535-47bb-0310-9956-ffa450edef68
* POIFS Property refactoring ready for NIO supportNick Burch2010-12-201-3/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1051025 13f79535-47bb-0310-9956-ffa450edef68
* Move CloseIgnoringInputStream out to its own class, and add more helper methodsNick Burch2010-12-191-17/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1050772 13f79535-47bb-0310-9956-ffa450edef68
* Start to merge the POIFS classes HeaderBlockReader and HeaderBlockWriter ↵Nick Burch2010-12-191-12/+12
| | | | | | into a common HeaderBlock class git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1050764 13f79535-47bb-0310-9956-ffa450edef68
* Resolve bug #49139 - don't assume that the block size is always 512 bytes. ↵Nick Burch2010-04-251-9/+19
| | | | | | Instead of hard coding this value in, pass around the new POIFSBigBlockSize object that holds the size and various helper subsizes. Should now be possible to open 4k block files without error. git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@937834 13f79535-47bb-0310-9956-ffa450edef68
* Fixed compiler warnings - unnecessary elseJosh Micich2009-08-181-37/+31
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@805492 13f79535-47bb-0310-9956-ffa450edef68
* Fixed POIFSFileSystem to set CLSID of root when constructing instances from ↵Yegor Kozlov2009-04-201-0/+3
| | | | | | InputStream, see bugzilla 39056 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@766757 13f79535-47bb-0310-9956-ffa450edef68
* Fix bug #45290 - Support odd files where the POIFS header block comes after ↵Nick Burch2008-11-121-10/+18
| | | | | | the data blocks, and is on the data blocks list git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@713447 13f79535-47bb-0310-9956-ffa450edef68
* Switch to using our own logger, rather than the commons oneNick Burch2008-04-141-4/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@647738 13f79535-47bb-0310-9956-ffa450edef68
* Improve how POIFS works with directory entries, and update HWPFDocument to ↵Nick Burch2008-04-101-10/+3
| | | | | | support reading an embeded word document git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@646870 13f79535-47bb-0310-9956-ffa450edef68
* Make a start on handling different big block sizes in POIFS, but work isn't ↵Nick Burch2008-03-131-6/+20
| | | | | | complete. See bug #35928 for part of what we're after git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@636786 13f79535-47bb-0310-9956-ffa450edef68
* Patch from Josh from bug #44366 - InputStreams passed to POIFSFileSystem are ↵Nick Burch2008-02-211-16/+100
| | | | | | now automatically closed. A warning is generated for people who might've relied on them not being closed before, and a wrapper to restore the old behaviour is supplied git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@629829 13f79535-47bb-0310-9956-ffa450edef68
* Tidy up the imports, remove accidental link to xmlbeansNick Burch2008-01-161-8/+10
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@612512 13f79535-47bb-0310-9956-ffa450edef68
* Add methods to check to see if a given InputStream has a OOXML file header, ↵Nick Burch2008-01-161-0/+33
| | | | | | or a OLE2 file header, so that a future factory method could figure out which class to instantiate for a given InputStraeam git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@612438 13f79535-47bb-0310-9956-ffa450edef68
* Applying the copy2license.pl script (with tiny modification to allow for ↵Henri Yandell2006-12-221-5/+6
| | | | | | more whitespace than it expects in the POI header) to all files. ant jar succeeds, and the svn diff has been verified by eye. Still more files to do, this is the first pass. git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@489730 13f79535-47bb-0310-9956-ffa450edef68
* New licence changes.Glen Stampoultzis2004-04-091-52/+15
| | | | git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353545 13f79535-47bb-0310-9956-ffa450edef68
* getters and setters for ClassID - addendum to bug 22195, by Kirill JacobsonAvik Sengupta2003-11-011-0/+2
| | | | | | | sync from branch git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353431 13f79535-47bb-0310-9956-ffa450edef68
* Changed copyright from 2002 to 2003Glen Stampoultzis2003-04-301-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353070 13f79535-47bb-0310-9956-ffa450edef68
* vba code no longer corrupted - ↵Andrew C. Oliver2002-09-161-0/+3
| | | | | | | | | | | | http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10213 PR: Obtained from: Submitted by: Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352845 13f79535-47bb-0310-9956-ffa450edef68
* Applied patches from Loiec LefeavreAndrew C. Oliver2002-03-151-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352216 13f79535-47bb-0310-9956-ffa450edef68
* Initial revisionAndrew C. Oliver2002-01-311-0/+519
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352063 13f79535-47bb-0310-9956-ffa450edef68