Example #1
0
        public static IStyleSheet FromStream(Stream stream, IStyleSheetOptions options)
        {
            StyleSheet result = new StyleSheet(options);

            result.ReadStream(stream);

            return(result);
        }
Example #2
0
 public static IStyleSheet FromFile(string filePath, IStyleSheetOptions options)
 {
     using (FileStream fstream = new FileStream(filePath, FileMode.Open))
         return(FromStream(fstream, options));
 }
Example #3
0
 public static IStyleSheet Parse(string input, IStyleSheetOptions options)
 {
     using (Stream stream = new MemoryStream(Encoding.UTF8.GetBytes(input)))
         return(FromStream(stream, options));
 }
Example #4
0
 private StyleSheet(IStyleSheetOptions options)
 {
     this.options = options;
 }