aboutsummaryrefslogtreecommitdiff
path: root/dotnet/Mammoth/Couscous/mammoth/internal/docx/InMemoryDocxFile.cs
blob: 9b7efd02978d977e8dae1f095933170d1ec4e2c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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 {
        internal static DocxFile fromStream(InputStream stream) {
            var memoryStream = new MemoryStream();
            stream.Stream.CopyTo(memoryStream);
            return new ZippedDocxFile(memoryStream);
        }
    }
}