aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/poi/poifs/filesystem/NPOIFSFileSystem.java
Commit message (Collapse)AuthorAgeFilesLines
* #62649 - Remove OPOIFS* / rename NPOIFS* to POIFS*Andreas Beeker2018-08-311-947/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1839709 13f79535-47bb-0310-9956-ffa450edef68
* Bug 61349 -- add more sanity checks when allocating byte[]Tim Allison2017-09-211-2/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1809169 13f79535-47bb-0310-9956-ffa450edef68
* Remove deprecated methods from NPOIFSFileSystem/OPOIFSFileSystemDominik Stadler2017-09-171-84/+19
| | | | | | IntelliJ warnings/suggestions git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1808622 13f79535-47bb-0310-9956-ffa450edef68
* Remove unnecessary type arguments (Java 8)Dominik Stadler2017-09-161-4/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1808516 13f79535-47bb-0310-9956-ffa450edef68
* Let IntelliJ cleanup some code-warnings across the whole code-base: ↵Dominik Stadler2017-09-161-3/+3
| | | | | | unnecessary casts git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1808508 13f79535-47bb-0310-9956-ffa450edef68
* Update third party libs to latest versionsDominik Stadler2017-09-151-13/+5
| | | | | | | Start updating build to Java 8 Set version to 4.0-beta1 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1808472 13f79535-47bb-0310-9956-ffa450edef68
* #61381 - PushbackInputStreams passed to ZipHelper may not hold 8 bytesAndreas Beeker2017-08-111-28/+21
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1804854 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
* Sonarqube fixes - Cast one of the operands of this multiplication operation ↵Andreas Beeker2017-01-011-2/+2
| | | | | | to a ... git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1776894 13f79535-47bb-0310-9956-ffa450edef68
* Provide a createOrUpdateDocument method at the POIFS level, and use to ↵Nick Burch2016-07-211-2/+20
| | | | | | simplify writing code #57919 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1753739 13f79535-47bb-0310-9956-ffa450edef68
* If doing an in-place write, update the properties tooNick Burch2016-07-201-0/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1753623 13f79535-47bb-0310-9956-ffa450edef68
* #57919 Provide an initial in-place write method for HSSFWorkbookNick Burch2016-07-171-0/+15
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1753103 13f79535-47bb-0310-9956-ffa450edef68
* Include stacktrace of inner exception when block-positions are invalid in ↵Dominik Stadler2016-02-211-1/+3
| | | | | | POIFSFileSystem git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1731560 13f79535-47bb-0310-9956-ffa450edef68
* replace Throwable.printStackTrace() with POILogger calls - Todo: other ↵Andreas Beeker2016-01-101-3/+4
| | | | | | printStrackTrace(...) calls git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1723899 13f79535-47bb-0310-9956-ffa450edef68
* #58597: Remove setAccessible (more coming soon)Uwe Schindler2015-11-111-0/+11
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1713770 13f79535-47bb-0310-9956-ffa450edef68
* Avoid NPE in cleanup if NPOIFSFileSystem is opened on a locked File under ↵Nick Burch2015-07-291-8/+9
| | | | | | Windows, and add a note on Java 7 possible cleanup #58098 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1693311 13f79535-47bb-0310-9956-ffa450edef68
* Bug 58156: Possible data corruption in hasPOIFSHeader and hasOOXMLHeaderDominik Stadler2015-07-201-3/+7
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1691948 13f79535-47bb-0310-9956-ffa450edef68
* When writing the mini-stream, set the size of it on the root property #58061Nick Burch2015-07-061-3/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1689505 13f79535-47bb-0310-9956-ffa450edef68
* Put the properties table at block 0, with the first BAT at block 1, to ↵Nick Burch2015-06-281-6/+7
| | | | | | hopefully solve #58061 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1688038 13f79535-47bb-0310-9956-ffa450edef68
* Fix NPOIFS to handle dodgy excel-95 file from bug #46904Nick Burch2015-05-261-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1681756 13f79535-47bb-0310-9956-ffa450edef68
* #56791 More updates from OPOIFS to NPOIFSNick Burch2015-05-111-0/+9
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1678801 13f79535-47bb-0310-9956-ffa450edef68
* If an empty stream or file is given to WorkbookFactory.create, give a more ↵Nick Burch2015-05-041-1/+8
| | | | | | informative exception - EmptyFileException git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1677562 13f79535-47bb-0310-9956-ffa450edef68
* More from Daniel Bonniot from bug #56956 - Make the FileChannel default ↵Nick Burch2014-09-111-3/+3
| | | | | | read-only too, more in keeping with 3.10 behaviour git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1624266 13f79535-47bb-0310-9956-ffa450edef68
* Patch from Daniel Bonniot from bug #56956 - Add a NPOIFSFileSystem ↵Nick Burch2014-09-111-2/+23
| | | | | | constructor with a FileChannel and the read-only option git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1624226 13f79535-47bb-0310-9956-ffa450edef68
* Bug 56537: Update javadoc to reflect the addition of Closeable to WorkbookDominik Stadler2014-07-021-1/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1607390 13f79535-47bb-0310-9956-ffa450edef68
* The NPOIFS-classes result currently in left-over memory mapped buffers.Andreas Beeker2014-05-041-9/+12
| | | | | | | | | | | These are actually hard to workaround, so for Windows the test is ignored, if this error happens. http://stackoverflow.com/questions/3602783/file-access-synchronized-on-java-object Apart of that, the RandomFileAccess instance is saved in the FileBackedDataSource as it needs to be closed instead of the Channel. http://bugs.java.com/bugdatabase/view_bug.do?bug_id=4796385 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1592418 13f79535-47bb-0310-9956-ffa450edef68
* Update the HPSF change properties example to use NPOIFS + in-place writes, ↵Nick Burch2014-04-281-0/+6
| | | | | | and have NPOIFS give a helpful error if you try to in-place write on a read only open git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1590577 13f79535-47bb-0310-9956-ffa450edef68
* Get NPOIFS in-place-write working!Nick Burch2014-04-281-4/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1590556 13f79535-47bb-0310-9956-ffa450edef68
* Fix javadoc layoutNick Burch2014-04-261-15/+15
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1590317 13f79535-47bb-0310-9956-ffa450edef68
* When deleting a document in NPOIFS, free the underlying blocksNick Burch2014-04-251-3/+14
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1590160 13f79535-47bb-0310-9956-ffa450edef68
* More NPOIFS write testing, and fix a problem with writing xbat details outNick Burch2014-04-241-0/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1589806 13f79535-47bb-0310-9956-ffa450edef68
* More unit tests for NPOIFS writing, and correct a bug in how bats get ↵Nick Burch2014-04-241-6/+14
| | | | | | allocated in xbats. (Some issues still remain) git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1589800 13f79535-47bb-0310-9956-ffa450edef68
* More int/long sizing fixes for >2gb NPOIFS files, see bug #56447Nick Burch2014-04-241-3/+9
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1589783 13f79535-47bb-0310-9956-ffa450edef68
* Bug 56437 - [PATCH] Streaming write support in NPOIFSAndreas Beeker2014-04-211-16/+16
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1588887 13f79535-47bb-0310-9956-ffa450edef68
* Add some @Overrides suggested by Eclipse, generics and some warnings,Dominik Stadler2013-12-261-12/+30
| | | | | | convert some tabs to spaces. git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1553466 13f79535-47bb-0310-9956-ffa450edef68
* An XBAT may not be fully used, and remaining entries may be 0 not ↵Nick Burch2013-02-041-1/+7
| | | | | | POIFSConstants.UNUSED_BLOCK, so avoid trying to process any that we know aren't used. Fixes bug #53810 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1442095 13f79535-47bb-0310-9956-ffa450edef68
* bug#52560 - ArrayIndexOutOfBoundsException: -2 on NPOIFSFileSystem.readBATMaxim Valyanskiy2012-01-301-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1237629 13f79535-47bb-0310-9956-ffa450edef68
* Fix NPOIFS creation of an empty filesystem, with create/write/read testNick Burch2011-05-121-10/+28
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1102482 13f79535-47bb-0310-9956-ffa450edef68
* NPOIFS and OPC both support close(), so mark them as suchNick Burch2011-05-061-1/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1100013 13f79535-47bb-0310-9956-ffa450edef68
* Fix a couple of NPOIFS bugs relating to empty files, empty documents and ↵Nick Burch2011-03-251-0/+3
| | | | | | non-padded stream data git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1085493 13f79535-47bb-0310-9956-ffa450edef68
* In NPOIFS, close the file we opened in more exception casesNick Burch2011-01-051-0/+8
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1055379 13f79535-47bb-0310-9956-ffa450edef68
* More NPOIFS testsNick Burch2011-01-011-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1054199 13f79535-47bb-0310-9956-ffa450edef68
* Tweak NPOIFS constructors so that if you have a FileChannel, you can pass it ↵Nick Burch2010-12-311-15/+64
| | | | | | in, but that the File based one will tidy up after itself in the event of errors git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1054033 13f79535-47bb-0310-9956-ffa450edef68
* NPOIFS needs an explicit close, as it has to keep the File / buffer around ↵Nick Burch2010-12-301-1/+14
| | | | | | to read from. Adds a close method git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1053777 13f79535-47bb-0310-9956-ffa450edef68
* More NPOIFS BAT vs XBAT confusion fixes. Also fixes recent POIFS regression ↵Nick Burch2010-12-291-1/+5
| | | | | | on big files, and adds a POIFS unit test for XBAT containing files (previously there wasn't one) git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1053511 13f79535-47bb-0310-9956-ffa450edef68
* More NPOIFS XBAT updatesNick Burch2010-12-291-41/+55
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1053504 13f79535-47bb-0310-9956-ffa450edef68
* XBAT logic in NPOIFS was incorrect - it's a chain of doubly indirect, not ↵Nick Burch2010-12-291-7/+17
| | | | | | singly indirect BATs. Start to correct git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1053495 13f79535-47bb-0310-9956-ffa450edef68
* Add NPOIFS high level Document implementationNick Burch2010-12-281-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1053273 13f79535-47bb-0310-9956-ffa450edef68
* Start on refactoring ready to support NPOIFS Directory/Document nodesNick Burch2010-12-281-11/+23
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1053269 13f79535-47bb-0310-9956-ffa450edef68
* Partial NPOIFS write implementation, and tidy up of methods around thisNick Burch2010-12-281-169/+51
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1053261 13f79535-47bb-0310-9956-ffa450edef68