aboutsummaryrefslogtreecommitdiff
path: root/dotnet/Mammoth/Couscous/mammoth/internal/docx/InMemoryDocxFile.cs
diff options
context:
space:
mode:
Diffstat (limited to 'dotnet/Mammoth/Couscous/mammoth/internal/docx/InMemoryDocxFile.cs')
-rw-r--r--dotnet/Mammoth/Couscous/mammoth/internal/docx/InMemoryDocxFile.cs14
1 files changed, 5 insertions, 9 deletions
diff --git a/dotnet/Mammoth/Couscous/mammoth/internal/docx/InMemoryDocxFile.cs b/dotnet/Mammoth/Couscous/mammoth/internal/docx/InMemoryDocxFile.cs
index a475acd..9b7efd0 100644
--- a/dotnet/Mammoth/Couscous/mammoth/internal/docx/InMemoryDocxFile.cs
+++ b/dotnet/Mammoth/Couscous/mammoth/internal/docx/InMemoryDocxFile.cs
@@ -1,17 +1,13 @@
using Mammoth.Couscous.java.io;
using Mammoth.Couscous.java.util;
+using System.IO;
namespace Mammoth.Couscous.org.zwobble.mammoth.@internal.docx {
- internal class InMemoryDocxFile : DocxFile {
+ internal class InMemoryDocxFile {
internal static DocxFile fromStream(InputStream stream) {
- return new InMemoryDocxFile();
- }
-
- public Optional<InputStream> tryGetInputStream(string name) {
- throw new System.NotImplementedException();
- }
-
- public void close() {
+ var memoryStream = new MemoryStream();
+ stream.Stream.CopyTo(memoryStream);
+ return new ZippedDocxFile(memoryStream);
}
}
}