diff options
| author | Michael Williamson <mike@zwobble.org> | 2016-06-04 16:03:56 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2016-06-04 16:03:56 +0100 |
| commit | 45e530dceda42282fae56b4c4f5fa7865f57899d (patch) | |
| tree | 685868f4bf78c64e851cbcdafd674e887bc782a5 /dotnet/Mammoth/Couscous/mammoth/internal/util/Base64Encoding.cs | |
| parent | b5a83b1cb96d410e325ff8b733d550295376d8c7 (diff) | |
Remove dotnet (use submodule from dotnet repo instead)
Diffstat (limited to 'dotnet/Mammoth/Couscous/mammoth/internal/util/Base64Encoding.cs')
| -rw-r--r-- | dotnet/Mammoth/Couscous/mammoth/internal/util/Base64Encoding.cs | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/dotnet/Mammoth/Couscous/mammoth/internal/util/Base64Encoding.cs b/dotnet/Mammoth/Couscous/mammoth/internal/util/Base64Encoding.cs deleted file mode 100644 index 24d2f9c..0000000 --- a/dotnet/Mammoth/Couscous/mammoth/internal/util/Base64Encoding.cs +++ /dev/null @@ -1,18 +0,0 @@ -using Mammoth.Couscous.java.lang; -using Mammoth.Couscous.java.io; - -namespace Mammoth.Couscous.org.zwobble.mammoth.@internal.util { - internal static class Base64Encoding { - internal static string streamToBase64(SupplierWithException<InputStream, IOException> streamSupplier) { - using (var stream = streamSupplier.get().Stream) { - return streamToBase64(stream); - } - } - - internal static string streamToBase64(System.IO.Stream stream) { - var memoryStream = new System.IO.MemoryStream(); - stream.CopyTo(memoryStream); - return System.Convert.ToBase64String(memoryStream.ToArray()); - } - } -} |
