From cc2646c12a4bf49be4417d6c48a6892dd2956e95 Mon Sep 17 00:00:00 2001 From: Nick Burch Date: Thu, 19 May 2011 11:59:27 +0000 Subject: [PATCH] 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 --- src/java/org/apache/poi/poifs/crypt/EncryptionInfo.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/java/org/apache/poi/poifs/crypt/EncryptionInfo.java b/src/java/org/apache/poi/poifs/crypt/EncryptionInfo.java index 70dd03799e..1ea9a87421 100644 --- a/src/java/org/apache/poi/poifs/crypt/EncryptionInfo.java +++ b/src/java/org/apache/poi/poifs/crypt/EncryptionInfo.java @@ -16,9 +16,9 @@ ==================================================================== */ 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.DocumentInputStream; +import org.apache.poi.poifs.filesystem.NPOIFSFileSystem; import org.apache.poi.poifs.filesystem.POIFSFileSystem; import java.io.IOException; @@ -38,6 +38,9 @@ public class EncryptionInfo { public EncryptionInfo(POIFSFileSystem fs) throws IOException { this(fs.getRoot()); } + public EncryptionInfo(NPOIFSFileSystem fs) throws IOException { + this(fs.getRoot()); + } public EncryptionInfo(DirectoryNode dir) throws IOException { DocumentInputStream dis = dir.createDocumentInputStream("EncryptionInfo"); versionMajor = dis.readShort();