mirror of https://github.com/apache/poi.git
Put back the NPOIFS constructor that got lost in r1101397
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1124696 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
88430f68b7
commit
cc2646c12a
|
@ -16,9 +16,9 @@
|
||||||
==================================================================== */
|
==================================================================== */
|
||||||
package org.apache.poi.poifs.crypt;
|
package org.apache.poi.poifs.crypt;
|
||||||
|
|
||||||
import org.apache.poi.poifs.filesystem.DocumentEntry;
|
|
||||||
import org.apache.poi.poifs.filesystem.DirectoryNode;
|
import org.apache.poi.poifs.filesystem.DirectoryNode;
|
||||||
import org.apache.poi.poifs.filesystem.DocumentInputStream;
|
import org.apache.poi.poifs.filesystem.DocumentInputStream;
|
||||||
|
import org.apache.poi.poifs.filesystem.NPOIFSFileSystem;
|
||||||
import org.apache.poi.poifs.filesystem.POIFSFileSystem;
|
import org.apache.poi.poifs.filesystem.POIFSFileSystem;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
@ -38,6 +38,9 @@ public class EncryptionInfo {
|
||||||
public EncryptionInfo(POIFSFileSystem fs) throws IOException {
|
public EncryptionInfo(POIFSFileSystem fs) throws IOException {
|
||||||
this(fs.getRoot());
|
this(fs.getRoot());
|
||||||
}
|
}
|
||||||
|
public EncryptionInfo(NPOIFSFileSystem fs) throws IOException {
|
||||||
|
this(fs.getRoot());
|
||||||
|
}
|
||||||
public EncryptionInfo(DirectoryNode dir) throws IOException {
|
public EncryptionInfo(DirectoryNode dir) throws IOException {
|
||||||
DocumentInputStream dis = dir.createDocumentInputStream("EncryptionInfo");
|
DocumentInputStream dis = dir.createDocumentInputStream("EncryptionInfo");
|
||||||
versionMajor = dis.readShort();
|
versionMajor = dis.readShort();
|
||||||
|
|
Loading…
Reference in New Issue