aboutsummaryrefslogtreecommitdiff
path: root/Mammoth/Couscous/mammoth/internal/archives/InMemoryArchive.cs
blob: 081670ccf4c9e9fda19f6ae28aba2743c15732d0 (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.archives {
    internal class InMemoryArchive {
        internal static Archive fromStream(InputStream stream) {
            var memoryStream = new MemoryStream();
            stream.Stream.CopyTo(memoryStream);
            return new ZippedArchive(memoryStream);
        }
    }
}