Example #1
0
        public static StringTextSource ReadFrom(byte[] data)
        {
            Encoding encoding;
            var      text = TextFileUtility.GetText(data, out encoding);

            return(new StringTextSource(text, encoding));
        }
Example #2
0
        public static StringTextSource ReadFrom(Stream stream)
        {
            Encoding encoding;
            var      text = TextFileUtility.GetText(stream, out encoding);

            return(new StringTextSource(text, encoding));
        }