aboutsummaryrefslogtreecommitdiff
path: root/dotnet/Mammoth/Couscous/mammoth/internal/docx/ZippedDocxFile.cs
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2016-04-26 23:35:10 +0100
committerMichael Williamson <mike@zwobble.org>2016-04-26 23:35:10 +0100
commit5506c630f1974595a4fb23b0d7acdb163d96d807 (patch)
tree2ed30d080ae0c56b4307076998b826bee88d6a1d /dotnet/Mammoth/Couscous/mammoth/internal/docx/ZippedDocxFile.cs
parent29f0f5e881220626c5eb6a270ed73a653176660b (diff)
Implement InMemoryDocxFile
Diffstat (limited to 'dotnet/Mammoth/Couscous/mammoth/internal/docx/ZippedDocxFile.cs')
-rw-r--r--dotnet/Mammoth/Couscous/mammoth/internal/docx/ZippedDocxFile.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/dotnet/Mammoth/Couscous/mammoth/internal/docx/ZippedDocxFile.cs b/dotnet/Mammoth/Couscous/mammoth/internal/docx/ZippedDocxFile.cs
index cad7a2f..cf39e63 100644
--- a/dotnet/Mammoth/Couscous/mammoth/internal/docx/ZippedDocxFile.cs
+++ b/dotnet/Mammoth/Couscous/mammoth/internal/docx/ZippedDocxFile.cs
@@ -9,6 +9,10 @@ namespace Mammoth.Couscous.org.zwobble.mammoth.@internal.docx {
internal ZippedDocxFile(File file) {
_zipFile = ZipFile.OpenRead(file.Path);
}
+
+ internal ZippedDocxFile(System.IO.Stream stream) {
+ _zipFile = new ZipArchive(stream);
+ }
public Optional<InputStream> tryGetInputStream(string name) {
var entry = _zipFile.GetEntry(name);