Browse Source

Add TODOs for further stream writing work

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1053251 13f79535-47bb-0310-9956-ffa450edef68
tags/REL_3_8_BETA1
Nick Burch 13 years ago
parent
commit
4d0313fd2e

+ 2
- 1
src/java/org/apache/poi/poifs/filesystem/NPOIFSMiniStore.java View File

* Load the block, extending the underlying stream if needed * Load the block, extending the underlying stream if needed
*/ */
protected ByteBuffer createBlockIfNeeded(final int offset) throws IOException { protected ByteBuffer createBlockIfNeeded(final int offset) throws IOException {
// TODO Extend
// TODO Extend the stream if needed
// TODO Needs append support on the underlying stream
return getBlockAt(offset); return getBlockAt(offset);
} }

+ 4
- 2
src/java/org/apache/poi/poifs/filesystem/NPOIFSStream.java View File

* handle small block ones. * handle small block ones.
* This uses the new NIO code * This uses the new NIO code
* *
* TODO Implement a streaming write method
* TODO Implement a streaming write method, and append
*/ */


public class NPOIFSStream implements Iterable<ByteBuffer> public class NPOIFSStream implements Iterable<ByteBuffer>
blockStore.setNextBlock(lastBlock, POIFSConstants.END_OF_CHAIN); blockStore.setNextBlock(lastBlock, POIFSConstants.END_OF_CHAIN);
} }
// TODO Streaming write support too
// TODO Streaming write support
// TODO then convert fixed sized write to use streaming internally
// TODO Append write support (probably streaming)
/** /**
* Frees all blocks in the stream * Frees all blocks in the stream

Loading…
Cancel
Save