Example usage for Java org.apache.poi.poifs.filesystem FileMagic fields, constructors, methods, implement or subclass
The text is from its open source code.
FileMagic | OLE2 OLE2 / BIFF8+ stream used for Office 97 and higher documents |
FileMagic | OOXML OOXML / ZIP stream |
InputStream | prepareToCheckMagic(InputStream stream) Checks if an InputStream can be reset (i.e. |
FileMagic | valueOf(byte[] magic) |
FileMagic | valueOf(final File inp) Get the file magic of the supplied File Even if this method returns FileMagic#UNKNOWN it could potentially mean, that the ZIP stream has leading junk bytes |
FileMagic | valueOf(InputStream inp) Get the file magic of the supplied InputStream (which MUST support mark and reset). If unsure if your InputStream does support mark / reset, use #prepareToCheckMagic(InputStream) to wrap it and make sure to always use that, and not the original! Even if this method returns FileMagic#UNKNOWN it could potentially mean, that the ZIP stream has leading junk bytes |