/// <exception cref="System.IO.FileNotFoundException"></exception> /// <exception cref="System.IO.IOException"></exception> private void LoadRulesFromFile(IgnoreNode r, FilePath exclude) { if (exclude.Exists()) { FileInputStream @in = new FileInputStream(exclude); try { r.Parse(@in); } finally { @in.Close(); } } }
/// <exception cref="System.IO.IOException"></exception> internal virtual IgnoreNode Load() { IgnoreNode r = new IgnoreNode(); InputStream @in = entry.OpenInputStream(); try { r.Parse(@in); } finally { @in.Close(); } return(r.GetRules().IsEmpty() ? null : r); }