|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.poi.poifs.filesystem.DocumentFactoryHelper
@Internal public class DocumentFactoryHelper
A small base class for the various factories, e.g. WorkbookFactory, SlideShowFactory to combine common code here.
| Constructor Summary | |
|---|---|
DocumentFactoryHelper()
|
|
| Method Summary | |
|---|---|
static java.io.InputStream |
getDecryptedStream(NPOIFSFileSystem fs,
java.lang.String password)
Wrap the OLE2 data in the NPOIFSFileSystem into a decrypted stream by using the given password. |
static boolean |
hasOOXMLHeader(java.io.InputStream inp)
Deprecated. in 3.17-beta2, use FileMagic.valueOf(InputStream) == FileMagic.OOXML instead |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DocumentFactoryHelper()
| Method Detail |
|---|
public static java.io.InputStream getDecryptedStream(NPOIFSFileSystem fs,
java.lang.String password)
throws java.io.IOException
fs - The OLE2 stream for the documentpassword - The password, null if the default password should be used
java.io.IOException - If an error occurs while decrypting or if the password does not match
@Deprecated
@Removal(version="4.0")
public static boolean hasOOXMLHeader(java.io.InputStream inp)
throws java.io.IOException
FileMagic.valueOf(InputStream) == FileMagic.OOXML instead
If unsure if your InputStream does support mark / reset,
use FileMagic.prepareToCheckMagic(InputStream) to wrap it and make
sure to always use that, and not the original!
inp - An InputStream which supports either mark/reset
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||