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