From 45e530dceda42282fae56b4c4f5fa7865f57899d Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sat, 4 Jun 2016 16:03:56 +0100 Subject: Remove dotnet (use submodule from dotnet repo instead) --- .../mammoth/internal/docx/ZippedDocxFile.cs | 30 ---------------------- 1 file changed, 30 deletions(-) delete mode 100644 dotnet/Mammoth/Couscous/mammoth/internal/docx/ZippedDocxFile.cs (limited to 'dotnet/Mammoth/Couscous/mammoth/internal/docx/ZippedDocxFile.cs') diff --git a/dotnet/Mammoth/Couscous/mammoth/internal/docx/ZippedDocxFile.cs b/dotnet/Mammoth/Couscous/mammoth/internal/docx/ZippedDocxFile.cs deleted file mode 100644 index cf39e63..0000000 --- a/dotnet/Mammoth/Couscous/mammoth/internal/docx/ZippedDocxFile.cs +++ /dev/null @@ -1,30 +0,0 @@ -using System.IO.Compression; -using Mammoth.Couscous.java.io; -using Mammoth.Couscous.java.util; - -namespace Mammoth.Couscous.org.zwobble.mammoth.@internal.docx { - internal class ZippedDocxFile : DocxFile { - private readonly ZipArchive _zipFile; - - internal ZippedDocxFile(File file) { - _zipFile = ZipFile.OpenRead(file.Path); - } - - internal ZippedDocxFile(System.IO.Stream stream) { - _zipFile = new ZipArchive(stream); - } - - public Optional tryGetInputStream(string name) { - var entry = _zipFile.GetEntry(name); - if (entry == null) { - return Optional.empty(); - } else { - return Optional.of(ToJava.StreamToInputStream(entry.Open())); - } - } - - public void close() { - _zipFile.Dispose(); - } - } -} -- cgit v1.2.3