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/DocumentConverter.cs | |
| parent | b5a83b1cb96d410e325ff8b733d550295376d8c7 (diff) | |
Remove dotnet (use submodule from dotnet repo instead)
Diffstat (limited to 'dotnet/Mammoth/DocumentConverter.cs')
| -rw-r--r-- | dotnet/Mammoth/DocumentConverter.cs | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/dotnet/Mammoth/DocumentConverter.cs b/dotnet/Mammoth/DocumentConverter.cs deleted file mode 100644 index eb8c939..0000000 --- a/dotnet/Mammoth/DocumentConverter.cs +++ /dev/null @@ -1,57 +0,0 @@ -using System.IO; -using Mammoth.Couscous; -using Mammoth.Couscous.org.zwobble.mammoth.@internal; -using Mammoth.Couscous.org.zwobble.mammoth.@internal.conversion; - -namespace Mammoth { - public class DocumentConverter { - private readonly DocumentToHtmlOptions options; - - public DocumentConverter() : this(DocumentToHtmlOptions._DEFAULT) { - } - - private DocumentConverter(DocumentToHtmlOptions options) { - this.options = options; - } - - public DocumentConverter IdPrefix(string idPrefix) { - return new DocumentConverter(options.idPrefix(idPrefix)); - } - - public DocumentConverter PreserveEmptyParagraphs() { - return new DocumentConverter(options.preserveEmptyParagraphs()); - } - - public DocumentConverter AddStyleMap(string styleMap) { - return new DocumentConverter(options.addStyleMap(styleMap)); - } - - public DocumentConverter DisableDefaultStyleMap() { - return new DocumentConverter(options.disableDefaultStyleMap()); - } - - public IResult<string> ConvertToHtml(Stream stream) { - return new InternalDocumentConverter(options) - .convertToHtml(ToJava.StreamToInputStream(stream)) - .ToResult(); - } - - public IResult<string> ConvertToHtml(string path) { - return new InternalDocumentConverter(options) - .convertToHtml(new Couscous.java.io.File(path)) - .ToResult(); - } - - public IResult<string> ExtractRawText(Stream stream) { - return new InternalDocumentConverter(options) - .extractRawText(ToJava.StreamToInputStream(stream)) - .ToResult(); - } - - public IResult<string> ExtractRawText(string path) { - return new InternalDocumentConverter(options) - .extractRawText(new Couscous.java.io.File(path)) - .ToResult(); - } - } -} |
