Esempio n. 1
0
        public static void Write(EpubBook book, Stream stream)
        {
            if (book == null)
            {
                throw new ArgumentNullException(nameof(book));
            }
            if (stream == null)
            {
                throw new ArgumentNullException(nameof(stream));
            }

            var writer = new EpubWriter(book);

            writer.Write(stream);
        }
Esempio n. 2
0
        public static void Write(EpubBook book, string filename)
        {
            if (book == null)
            {
                throw new ArgumentNullException(nameof(book));
            }
            if (string.IsNullOrWhiteSpace(filename))
            {
                throw new ArgumentNullException(nameof(filename));
            }

            var writer = new EpubWriter(book);

            writer.Write(filename);
        }