On Sun, 27 Mar 2011, Yegor Kozlov wrote:
What's the status of NPOIFS? I see lots of commits, but not the documentation. IMO, if we want early feedback on this feature, we ought to drop a few lines how to use it.

Currently it's read only (write is almost there, but not quite). It should be a complete drop-in for POIFS for reading. Generally the only change is that it can take a File (and is quicker if it does), otherwise replace POIFSFileSystem with NPOIFSFileSystem and you're away!

This:
   FileInputStream inp = new FileInputStream(file);
   POIFSFileSystem fs = new POIFSFileSystem(inp);
Becomes:
   NPOIFSFileSystem fs = new NPOIFSFileSystem(file)

This:
   InputStream inp = fetchInputStream(request);
   POIFSFileSystem fs = new POIFSFileSystem(inp);
Is basically unchanged:
   InputStream inp = fetchInputStream(request);
   NPOIFSFileSystem fs = new NPOIFSFileSystem(inp);

There's some stuff at:
  http://poi.apache.org/poifs/how-to.html#NIO+Reading+using+NPOIFSFileSystem
Do you think we ned any more?

Nick

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to